Version française
Home     About     Download     Resources     Contact us    
Browse thread
Haskell vs OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] Haskell vs OCaml
On Wednesday 13 August 2008 13:48:45 circ ular wrote:
> What are the advantages/disadvantages when comparing OCaml to Haskell?

Techically, predictable performance, high performance on x64, tools like 
camlp4 and language features including records, functors, polymorphic 
variants and structurally-typed objects are probably the main advantages of 
OCaml over Haskell.

Non-technically, OCaml has more well-tested libraries, more practical books 
(e.g. my own), more high-profile open source projects (e.g. FFTW has millions 
of users):

http://ocamlnews.blogspot.com/2007/12/top-10-most-popular-ocaml-programs.html
http://haskell-news.blogspot.com/2008/01/top-10-most-popular-haskell-programs.html

and is much more widely used in industry. There are far more 
practically-minded people in the OCaml community and that is reflected in the 
much larger number of commercial products that use OCaml.

Tangentially, OCaml has a successful relative in F# whereas Haskell's close 
relatives are extinct.

I did extensive research on all of the most popular functional languages last 
year, including Haskell. In case you are trying to do something similar, I'll 
warn you that almost all of the examples of Haskell's use in industry are 
fakes, e.g. companies that have no products, companies that have one product 
that never used Haskell, companies that happen to have two Haskell advocates 
working for them out of 150 developers, companies where one employee once did 
a preliminary Haskell program but nothing since and, finally, plain old spam 
where companies that have never had anything to do with Haskell have hijacked 
the Haskell site to advertise on-line only to be hailed as a "real world" 
example of Haskell in industry by its proponents. I was rather baffled when I 
discovered this and have never seen behaviour like it.

Haskell also has some advantages over OCaml, of course, but you should 
probably ask the Haskell community to explain them. I consider them all to be 
untested because nobody has ever done anything significant using Haskell 
AFAIK.

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/products/?e