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

Does != have meaning in OCaml?

you have experienced the difference between structural and physical equality. <> is to = (structural equality) as != is to == (physical equality) “odg” = “odg” (* true *) “odg” == “odg” (* false *) is false because each is instantiated in different memory locations, doing: let v = “odg” v == v (* true … Read more

Sneaking lenses and CPS past the value restriction

The value restriction is a limitation of the OCaml type system that prevents some polymorphic values from being generalized, i.e. having a type that is universally quantified over all type variables. This is done to preserve soundness of the type system in the presence of mutable references and side effects. In your case, the value … Read more

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