If you're thinking of checking out the Pony programming language, here's a list of things that I think are important to know. This list is based on a Tweet that I wrote.
There are Pony packages for several popular editors.
| """Convert Dreem CSV to OSCAR-friendly Zeo CSV | |
| Liberty taken with the ZQ column, pinning it to 0. Other non-common fields are nulled. | |
| Tested with Python 3.7.3 and 2.7.10. | |
| Usage: | |
| python dreem_csv_to_oscar_zeo.py data_in.csv data_out.csv | |
| """ | |
| from csv import DictReader, DictWriter | |
| from datetime import datetime, timedelta |
| interface Package | |
| object Echo : Package | |
| object Broadcast : Package | |
| data class Children(val response: Receptionist.Listing) : Package | |
| val childrenServiceKey: ServiceKey<Echo> = ServiceKey.create(Echo::class.java, "children") | |
| val father: Behavior<Package> = Behaviors.setup<Package> { ctx -> | |
| val receptionistAdapter = ctx.messageAdapter(Receptionist.Listing::class.java) { Children(it) } |
If you're thinking of checking out the Pony programming language, here's a list of things that I think are important to know. This list is based on a Tweet that I wrote.
There are Pony packages for several popular editors.
| import firebase from 'firebase' | |
| import { filter, map } from 'lodash' | |
| import { makeExecutableSchema } from 'graphql-tools' | |
| firebase.initializeApp({ | |
| databaseURL: 'https://grafire-b1b6e.firebaseio.com', | |
| }) | |
| const mapSnapshotToEntity = snapshot => ({ id: snapshot.key, ...snapshot.val() }) | |
| const mapSnapshotToEntities = snapshot => map(snapshot.val(), (value, id) => ({ id, ...value })) |
| package poc | |
| import org.scalajs.dom | |
| import scala.scalajs.js | |
| import scala.scalajs.js.annotation.JSExport | |
| @js.native | |
| object WorkerGlobal extends js.GlobalScope { | |
| def addEventListener(`type`: String, f: js.Function): Unit = js.native |
In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.
At the moment GraphQL allows 2 types of queries:
querymutationReference implementation also adds the third type: subscription. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.
Add Graal JIT Compilation to Your JVM Language in 5 Steps, A Tutorial http://stefan-marr.de/2015/11/add-graal-jit-compilation-to-your-jvm-language-in-5-easy-steps-step-1/
The SimpleLanguage, an example of using Truffle with great JavaDocs. It is the officle getting-started project: https://github.com/graalvm/simplelanguage
Truffle Tutorial, Christan Wimmer, PLDI 2016, 3h recording https://youtu.be/FJY96_6Y3a4 Slides
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| package sample.hello | |
| import akka.actor.ActorSystem | |
| import akka.actor.Props | |
| import akka.actor.UntypedActor | |
| import akka.actor.UntypedActorContext | |
| import akka.actor.ActorPath | |
| import scala.concurrent.duration.Duration | |
| import java.util.HashMap | |
| import akka.actor.ActorSystem |