Featured

Real World Observables

Reactive code examples can be mind-blowing. Powerful, succint, robust...they seem to handle many concurrency scenarios without breaking a sweat. But let's be honest, examples from 30-minute conference talks and short blog posts rarely reflect the messy real world™. In any case, developers get all pumped up about reactive goodness and want to use it in … Continue reading Real World Observables

Extending JavaScript with inline unit tests

I’ve been checking out Pyret, the new language from the same guys that made Racket. Even if it is designed to be for education, it has a syntax I love and some really cool features, like the possibility of adding in-line unit tests to your functions. This feature in particular looks like this: [code lang=plain] … Continue reading Extending JavaScript with inline unit tests

Dynamically generating MIDI in JavaScript

Last weekend I open-sourced a small side project consisting of a JavaScript library that generates MIDI in a simple manner. As an example, the code to generate a MIDI file that plays 3 notes (C, E and G) would look like the following: // We pass some notes to |MidiWriter.createNote| to create the MIDI // … Continue reading Dynamically generating MIDI in JavaScript

Writing a JavaScript interpreter for DBN using PEG.js and canvas (Part II)

In this article I build an interpreter for the DBN language from the parsed AST generated by the grammar we defined in the previous article in PEG.js. If you haven't read the first part, I strongly recommend to do so, otherwise this will make little sense to you. It should be quite easy to follow … Continue reading Writing a JavaScript interpreter for DBN using PEG.js and canvas (Part II)