Erlang

All the FP talks at NDC Oslo

Great news, recording of all the talks at this year’s NDC Oslo has been uploaded to Vimeo! It’s a lot of videos to go through, so I’ve curated all the talks from the FP track this year, including my new talk “A tour of the language landscape” where I covered some interesting ideas and concepts …

All the FP talks at NDC Oslo Read More »

Solving the Stable Marriage problem in Erlang

Whilst talking with an ex-colleague, a question came up on how to implement the Stable Marriage problem using a message passing approach. Naturally, I wanted to answer that question with Erlang! Let’s first dissect the problem and decide what processes we need and how they need to interact with one another. The stable marriage problem …

Solving the Stable Marriage problem in Erlang Read More »

A look at Microsoft Orleans through Erlang-tinted glasses

Some time ago, Microsoft announced Orleans, an implementation of the actor model in .Net which is designed for the cloud environment where instances are ephemeral. We’re currently working on a number of projects in Erlang and have run into some assumptions in distributed Erlang which doesn’t hold true in a cloud-hosted environment where nodes are …

A look at Microsoft Orleans through Erlang-tinted glasses Read More »

F# – Imitating Erlang’s bit syntax for easier binary protocol implementation

Bit Syntax in Erlang One of the often under-appreciated features of Erlang is its Bit Syntax for parsing and pattern matching binary data at a bit level. For instance, to pare TCP segments you can write something along the line of: The same capability can be applied to anything binary protocols, such as video encoding, …

F# – Imitating Erlang’s bit syntax for easier binary protocol implementation Read More »

Getting started with Rebar on Windows

Whilst the official rebar documentation only covers usages on Unix, turns out it was really easy to get going on Windows too, even without resorting to installing and using cygwin. Here’s some quick steps: clone the rebar repo in the root of the repo, run bootstrap.bat (you’ll need Erlang installed for this) copy the generated …

Getting started with Rebar on Windows Read More »

A simple finite state machine in Erlang and F#

Considering a very simple finite state machine (FSM) such as a code lock which requires you to enter a 4-digit numeric code and upon which will open the lock for a brief few seconds. Such a FSM have two states: Locked and Open. Every time a key is entered it checks the sequence of digits …

A simple finite state machine in Erlang and F# Read More »

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close