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:
query
mutation
Reference 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
Tutorial [Copied from: http://linux-tc-notes.sourceforge.net/tc/doc/sch_hfsc.txt] | |
======== | |
HFSC stands for Hierarchical Fair Service Curve. Unlike its | |
cousins CBQ and HTB it has a rigorous mathematical foundation that | |
delivers a guaranteed outcome. In practice that means it does a | |
better job than either CBQ or HTB, both of which are essentially | |
best effort guesses at solving what is a surprisingly complex | |
problem. Both of them get it wrong in subtle ways which show up | |
as them not meeting their bandwidth and latency guarantees. |
(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.