Archive

Archive for August, 2009

Recursion in Erlang

August 28th, 2009

Quick Sort

I took this example from Joe Armstrong’s book: Programming Erlang to show the beauty Erlang in recursion. Classic example of quick sort implementation

Can’t believe it, 6 simple and very elegant!!! I remembered roughly 10 years ago, how hard to write quick sort implementation in Pascal.

Tail Recursion

The quick sort implementation above is not tail recursive way. As the function call doesn’t return the whole results at once (look at the list concatenation). Here are few examples of tail recursion in Erlang

Basic , , , , ,

Diving into Emacs

August 3rd, 2009

I started looking at emacs as an alternative to TextMate and Eclipse for programming Erlang, especially in Windows. In fact, it’s quite hard. And I found this picture is very very true
editor-learning-curve

Uncategorized