Erlang Echo Server
May 19th, 2010
In this post, I’ll be looking at an example of a simple Erlang program: an echo server. An echo server accepts connections from clients and simply responds to any data received with the same data. While the example given here is quite simple, it is able to deal with multiple simultaneous client connections and handles most errors in a sensible way.
Category: Programming | Tags: echo, erlang, sockets | 3 Comments
Starting Erlang
May 16th, 2010
Since the last few posts I’ve moved on from Haskell and am now looking at Erlang, another functional language developed by Ericsson and released as open source in 1998. I’ll start by giving and explaining the code for a simple “Hello World!” program.
Category: Programming | Tags: erlang, hello world | No Comments
Fibonacci Numbers
February 12th, 2010
As I said in my last post, I will look at generating Fibonacci numbers in Haskell. I will look at a simple but slow algorithm followed by a much faster version to highlight the importance of algorithm design.
Category: Programming | Tags: algorithm, fibonacci, haskell | 1 Comment
First Steps in Haskell
January 22nd, 2010
Recently I have decided to teach myself the Haskell programming langauge. My first step was to grab a copy of the O’Reilly book on the langauge, which while slightly out of date, I can highly recommend. After digesting the earlier chapters, I was ready to write some simple programs. The first being the obligatory “Hello World!” program, which is incredibly simple.
Category: Programming | Tags: haskell, hello world | 1 Comment
