Its not the same language though. It has a bunch of oop-ness from c#, weird ways of handling ad hoc polymorphism, and not really a module system like ocaml.
Sorry, my statement was ambiguous. Jane Street’s contributions to the open source community are appreciated, but outside of those, the Ocaml ecosystem is pretty limited. So if you’re looking for a library, and it isn’t something Jane Street cares about, then your odds of finding it aren’t great. In my case, I gave up on OCaml because I couldn’t find an up to date image processing library.
I don’t know the current state of F# in Linux. But some years ago, I found that F# on Linux ran slower than on Windows. Since then, I have moved to OCaml. But there are a few very cool things in F# that I miss.
Compiling F# is definitely slow if you're used to OCaml. If you can stomach build times, everything else is better imo. (I do my day job fully in F# on Linux fwiw)
“.net” is a framework, but it is also a runtime. Both are called .net, but they are different layers. F# doesn’t require the framework .net to run, but it requires the runtime .net.
16
u/[deleted] Jul 24 '24
I really like OCaml as a language. So unfortunate that the tooling around it is just yucky.
16
u/mister_drgn Jul 24 '24
I like OCaml. The challenge is finding third-party libraries that aren’t developed by Jane Street.
5
u/Own_Lavishness_6468 Jul 24 '24
Try F#. OCaml is its predecessor and you will be surprised how similar F# and OCaml code looks ;)
9
u/vm_linuz Jul 24 '24
A good type system enables good compiler optimization and helps prevent bugs. Love strongly-typed functional languages :)
4
u/restore_muffin04 Jul 25 '24
Because it makes my code look smart and my errors look dumber!
3
u/Bowen_0001 Jul 27 '24
I find many top level US universities using OCaml as a language for compiler theory courses.