To view parent comment, click here.
To read all comments associated with this story, please click here.
Was about to say you were wrong, then realised you were right. In terms of space complexity the Haskell version is a lot worse than the classic C version (which can be used in any imperative language). This article discusses the pros and cons of Haskell using Quicksort as an example: http://www.haskell.org/haskellwiki/Introduction
Personally I found Haskell to be a very accessible functional programming language. I learned it from the book "Haskell: The Craft of Functional Programming" which did a lot of additional work into algorithm correctness and proof by induction (something which is easy in Haskell). However that book never got into typically applied programs: the impressions I got was that it was best for prototyping important algorithms. That said, the Darcs project is an impressive version control system built on Haskell (http://lambda-the-ultimate.org/node/391)
Edited 2006-03-18 18:30






Member since:
2005-12-31
> He mentions a book by Kleene and clicking on it jumps
> to Amazon which suggests another book by Haskell Curry
> which is something I will probably browse if I find it.
> Anyone heard of the Haskell language. I started looking
> at that and once the operators were explained, that
> made alot of sense too ie quicksort in 3 lines instead
> of 30 lines of C code.
Was it also as obvious that the 3 lines of Haskell code have a O(n*log(n)) space complexity as opposed to the O(n) of the 30 lines of C code? This can make a big difference once your data sets get large.