Thursday, November 26, 2009

My First Erlang Server - A MathServer

Erlang is a very cool language - OK, it's not the most intuitive to learn if you're a Java/C++ developer but it is extremely powerful and scaleable.  I managed to start 15,000 client sessions against my MathServer on my laptop without any problem whatsoever.  Imagine doing that in Java or C++... not easy to get the kind of performance that Erlang gives you for free.

Here is the code:





and for completeness, this is how you start the server (replace AndrewTosh with the name of your PC):



See the Erlang official website for more details. I'll be doing lots more with Erlang so watch this space...

No comments:

Unweaving the Rainbow, by Richard Dawkins

We are going to die, and that makes us the lucky ones. Most people are never going to die because they are never going to be born. The potential people who could have been here in my place but who will in fact never see the light of day outnumber the sand grains of Sahara. Certainly those unborn ghosts include greater poets than Keats, scientists greater than Newton. We know this because the set of possible people allowed by our DNA so massively outnumbers the set of actual people. In the teeth of these stupefying odds it is you and I, in our ordinariness, that are here.
RichardDawkins.net

Books I am reading this book at the moment:

Atheist

The Out Campaign: Scarlet Letter of Atheism