▲ | loxs 5 days ago | |||||||||||||||||||||||||||||||
I migrated from OCaml to Rust around 2020, haven't looked back. Although Rust is quite a lot less elegant and has some unpleasant deficiencies (lambdas, closures, currying)... and I end up having to close one one eye sometimes and clone some large data-structure to make my life easier... But regardless, its huge ecosystem and great tooling allows me to build things comparatively so easily, that OCaml has no chance. As a bonus, the end result is seriously faster - I know because I rewrote one of my projects and for some time I had feature parity between the OCaml and Rust versions. Nevertheless, I have fond memories of OCaml and a great amount of respect for the language design. Haven't checked on it since, probably should. I hope part of the problems have been solved. | ||||||||||||||||||||||||||||||||
▲ | jasperry 5 days ago | parent | next [-] | |||||||||||||||||||||||||||||||
Your comment makes me think the kind of people who favor OCaml over Rust wouldn't necessarily value a huge ecosystem or the most advanced tooling. They're the kind who value the elegance aspect above almost all else, and prefer to build things from the ground up, using no more than a handful of libraries and a very basic build procedure. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
▲ | ackfoobar 5 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
> the end result is seriously faster Do you have a ballpark value of how much faster Rust is? Also I wonder if OxCaml will be roughly as fast with less effort. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
▲ | javcasas 4 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||
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. | ||||||||||||||||||||||||||||||||
|