Haskell, Scala, Clojure, what to choose for high performance pattern matching and concurrency [closed]

Do you want fast or do you want easy? If you want fast, you should use C++, even if you’re using FP principles to aid in correctness. Since timing is crucial, the support for soft (and hard, if need be) real-time programming will be important. You can decide exactly how and when you have time … Read more

How to build an OCaml cross compiler

The question has answered itself… in a rather weird way. What it was really asking for (in 2012) was a cross-compiler targeting (an unspecified version of) iOS for version 4.x of Ocaml. And the code dump in the question was trying to use Jeffrey Scofield’s cross-compiling instructions and script (ocamlxarm/3.1) for Ocaml 3.1.x, which didn’t … Read more

What’s the closest thing to Haskell’s typeclasses in OCaml?

It really depends what you want to achieve. If you are happy with the OCaml polymorphic comparison function (which will not work on cyclic and functional values), you can simply write: let my_sort l = List.sort Pervasives.compare l The more generic way to mimic type classes is to use functors: module type COMPARABLE = sig … Read more

When should objects be used in OCaml?

As a general rule of thumb, don’t use objects. The additional complexity they bring in is not that often worth it. I think that’s a rule that apply to other languages as well, but that’s another story. At least with OCaml one can objectively (no pun intended) say that the common practice is to not … Read more

What’s really more performant? Haskell or OCaml [closed]

By all accounts, both OCaml and Haskell have sufficiently performant compilers and runtimes for almost anything. Picking between them on the basis of pure performance seems silly to me. You’ve come this far — moving away from the obviously most low-level and performant languages (C, C++, etc.) in the name of clearer, more succinct, more … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)