I’ve been working for some times on a distributed storage project, with Erlang as the main programming language. We use the RADOS API to access the storage, which is based on Ceph. As librados does not have an Erlang binding yet, so I did some binding for some of the APIs that we really needed. [...]
Posted on April 5, 2012, 5:00 pm, by xp, under
Programming.
In the last post, I have investigated the performance of Erlang and Go to create a large number of processes, or goroutines in the case of Go. The test program would spawn a large number of processes, and then send a termination message to all of them to terminate. The purpose is to see how [...]
Posted on April 4, 2012, 9:06 pm, by xp, under
Programming.
Erlang has been known for its prowess in concurrent and distributed programming, by providing the three primitives spawn, send, and receive, which make concurrent programming easy. Although Erlang may not be the first to provide such a built-in language feature, its selling point was that you can create hundreds or thousands of cooperating Erlang processes [...]
Posted on December 23, 2010, 12:01 pm, by xp, under
Programming.
Nitrogen build is looking at the wrong place for tsung file and causes build dependency errors.
Posted on December 16, 2010, 11:19 am, by xp, under
Programming.
Riak is written in Erlang, so you would think that it should have the best Erlang client, right? Right? Wrong, not only the Erlang client has incomplete features, compared to its clients in other languages, it has one of the most annoying feature of all: the client would disconnect for any and all reasons. Any [...]
Posted on December 13, 2010, 12:21 pm, by xp, under
Programming.
As nice as the Erlang platform is, there is always something that makes you pull your hair. My most hated feature in Erlang is record. It provides a feature like struct in C, but it sucks really hard. Working on a very data-intensive application, you always have some complex data structures to deal with. Modelling [...]
Someone told me that Riak is a good K/V store to work with, it’s very scalable, and it’s written in Erlang. Since my application is also written in Erlang, that sounds like a good thing to try out. I have been working with MongoDB, and it’s actually quite nice, although the Erlang driver is not [...]
Posted on August 4, 2010, 9:29 am, by xp, under
Programming.
In this post, I’m going to describe how to debug Erlang code within Emacs. We had installed and configured all the tools necessary, and have written our first Erlang “Hello world” program. Since the code-compile-debug is an important cycle, sooner or later, you will need to step into your code to debug it. Therefore, you [...]
Erlang is great platform, however, if you want to develop Erlang programs, the best development environment is probably Emacs at this point. In this post, I’m describing the tools you need, and how to set up to develop Erlang codes. The OS is assumed to be Debian-based Linux (mine is Ubuntu 10.04). First, make sure [...]