Archive for the ‘Old Fashioned Coder’ Category

Lisp for the Low Level Man: An Introduction to Liskell

26 July 2007

So, you want to program Lisp on a slow/old computer? Use Liskell, it’s Haskell and Lisp combined into a new language.

The example given on the home page of Liskell in action is actually pretty interesting:

(define (fact n)

(if (== n 0)
1
(* n (fact (- n 1))))))))

Compare this to the old school Haskell:

fact n =

if n == 0

then 1

else n * (fact (n - 1)))

It has the beauty of Lisp and the speed as well as efficiency of Haskell. It’s a beautiful language for those that like functional languages (all eyes turn to John Armstrong :P).