Category: Programming

Erlang Echo Server

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.

Read More »

Starting Erlang

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.

Read More »

Fibonacci Numbers

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.

Read More »

First Steps in Haskell

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.

Read More »