Remix.run Logo
javcasas 4 days ago

Were you using the ocamlopt compiler? By default, ocaml runs in a VM, but few people figure that out because it is not screaming its name all the time like a pokemon (looking at you JVM/CLR). But ocaml can be compiled to machine code with significant performance improvements.

debugnik 4 days ago | parent | next [-]

> By default, ocaml runs in a VM,

The Dune build system does default to ocamlopt nowadays, although maybe not back around 2020.

loxs 3 days ago | parent | prev [-]

Yeah, I just checked in my repository, it was ocamlopt