Aspects


vs


Haskell

Haskell is a functional programming language featuring strong static typing, lazy evaluation, extensive parallelism and concurrency support, and unique abstraction capabilities.

Ocaml

OCaml is a strict statically-typed functional programming language, focusing on expressiveness, correctness, and efficiency.

Others

Quality Example
Better

"I would just use ocaml but haskell s syntax is so much better than ocaml s and haskell is pure and has cool features such as type classes"

from question "Is there a Haskell compiler or preprocessor that uses strict evaluation?"

Zipwith friendlier

"The haskell zipwith is friendlier than the ocaml list.map2 which requires the lists to be the same length"

from question "Ocaml sum of two lists with different length"

More intuitive

"You will also likely find the performance characteristics of your ocaml code more intuitive than haskell because of haskell s lazy evaluation"

from question "Machine learning in OCaml or Haskell?"

Closer

"Ocaml is closer to c++ because of it s imperative and oo features but i recommend you learn haskell as it is more functional more mindbending and has more resources"

from question "What functional language approach most readily transfers to Boost Phoenix?"

Lower

"As others have pointed out ocaml s learning curve will be lower than haskell s"

from question "Machine learning in OCaml or Haskell?"

More powerful

"Keith pointed out that haskell has a more powerful type system but it can also be said that ocaml has a more powerful module system than haskell"

from question "Machine learning in OCaml or Haskell?"

Fewer industrial

"Haskell has fewer industrial users than ocaml and although it does have multicore support it is still being developed in a very unproductive direction"

from question "Should I learn Haskell or F# if I already know OCaml?"

Less code

"Secondly the haskell ffi is more powerful that is it does more with less code than ocaml s and more libraries are avaliable via hackage so i don t think foreign interfaces will be a deciding factor"

from question "Machine learning in OCaml or Haskell?"

More

"Haskell has more momentum these days but there are plenty of good parsing libraries for ocaml as well including the peg parser generator aurochs menhir and the glr parser generator dypgen"

from question "When choosing a functional programming language for use with LLVM, what are the trade-offs?"

Faster

"The reason i wanted to investigate this was because both c and ocaml were significantly faster than haskell for this program"

from question "On improving Haskell's performance compared to C in fibonacci micro-benchmark"

Higher

"Haskell has higher level bindings to llvm than ocaml the haskell ones provide some interesting type safety guarantees and haskell has by far more libraries to use 1700 packages on making it easier to glue together components"

from question "When choosing a functional programming language for use with LLVM, what are the trade-offs?"

Back to Home
Data comes from Stack Exchange with CC-BY-SA-3.0