>OCaml cannot be used to compile to web-assembler>OCaml does not have any libraries for graphical GUI interfaces>OCaml is too slow for system programming like ffmpeg encoders, drivers, etc.What do people even use this for? Just mathematical self-mastrubation?
Apart from being impure its a really well designed language. I enjoyed it a lot. Especially the module system.I used it to write a custom mmorpg client for botting.I'd say its better than Rust but worse than Haskell
>>109394398running trading algos on fpga's at quant finance firms like jane street capital though I don't remember any other firm using ocaml
>>109396255FPGA uses things like verilog, not OCaml
The library landscape is a bit rough tho. I needed a good way to model async operations. There are currently 3 libraries you can choose from (lwt, async from janestreet and eio) and they are all fundamentally flawed with regards to cancellation. I've used eio for the longest time, but switched to free monads now.Just be prepared to handroll a lot of the stuff you would normally use a off-the-shelf library for.
>>109394398mathematicians use python
>>109394398Yes.
its good for vibe coding. just has poor windows support so I have to use f#
>>109394398It's pretty good for building language tooling. Many static analyzers (Polyspace, Mopsa, Infer...) are built using Ocaml.
>>109394398prototyping compilers
legacy probably. I can't think of a single use case where I would pick OCaml over both Haskell and Rust
>>109399577Performances and strict evaluation?