Erlang

All the FP talks at NDC Oslo

Great news, record­ing 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 curat­ed all the talks from the FP track this year, includ­ing my new talk “A tour of the lan­guage land­scape” where I cov­ered some inter­est­ing ideas and con­cepts …

All the FP talks at NDC OsloRead More »

Solving the Stable Marriage problem in Erlang

Whilst talk­ing with an ex-col­league, a ques­tion came up on how to imple­ment the Sta­ble Mar­riage prob­lem using a mes­sage pass­ing approach. Nat­u­ral­ly, I want­ed to answer that ques­tion with Erlang! Let’s first dis­sect the prob­lem and decide what process­es we need and how they need to inter­act with one anoth­er. The sta­ble mar­riage prob­lem …

Solv­ing the Sta­ble Mar­riage prob­lem in ErlangRead More »

A look at Microsoft Orleans through Erlang-tinted glasses

Some time ago, Microsoft announced Orleans, an imple­men­ta­tion of the actor mod­el in .Net which is designed for the cloud envi­ron­ment where instances are ephemer­al. We’re cur­rent­ly work­ing on a num­ber of projects in Erlang and have run into some assump­tions in dis­trib­uted Erlang which doesn’t hold true in a cloud-host­ed envi­ron­ment where nodes are …

A look at Microsoft Orleans through Erlang-tint­ed glass­esRead More »

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

Bit Syn­tax in Erlang One of the often under-appre­­ci­at­ed fea­tures of Erlang is its Bit Syn­tax for pars­ing and pat­tern match­ing bina­ry data at a bit lev­el. For instance, to pare TCP seg­ments you can write some­thing along the line of: The same capa­bil­i­ty can be applied to any­thing bina­ry pro­to­cols, such as video encod­ing, …

F# – Imi­tat­ing Erlang’s bit syn­tax for eas­i­er bina­ry pro­to­col imple­men­ta­tionRead More »

Getting started with Rebar on Windows

Whilst the offi­cial rebar doc­u­men­ta­tion only cov­ers usages on Unix, turns out it was real­ly easy to get going on Win­dows too, even with­out resort­ing to installing and using cyg­win. 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 gen­er­at­ed …

Get­ting start­ed with Rebar on Win­dowsRead More »

A simple finite state machine in Erlang and F#

Con­sid­er­ing a very sim­ple finite state machine (FSM) such as a code lock which requires you to enter a 4-dig­it numer­ic code and upon which will open the lock for a brief few sec­onds. Such a FSM have two states: Locked and Open. Every time a key is entered it checks the sequence of dig­its …

A sim­ple 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