233 points · by lelf · 7y ago · 76 comments
What is OCaml used for? https://www.quora.com/What-is-OCaml-used-for?share=1
Further infos:
awesome-ocaml - A curated collection of awesome OCaml tools, frameworks, libraries and articles: https://github.com/ocaml-community/awesome-ocaml
OCamlPro Research and Development: https://www.ocamlpro.com/research-and-development/
OCaml Weekly News (RSS): http://alan.petitepomme.net/cwn/cwn.rss
- A package manager like NPM, but for native code: https://github.com/esy/esy
- A fast Node version manager: https://github.com/Schniz/fnm
- A fast replacement for dotenv-cli: https://github.com/ulrikstrid/reenv
- A fast JS bundler: https://github.com/fastpack/fastpack
- A native language server: https://github.com/jaredly/reason-language-server
The OCaml language and toolchain is very powerful... and I do believe ReasonML makes it more approachable, at least for a wider audience of developers comfortable with JavaScript-style syntax.
- A native GUI: https://github.com/revery-ui/revery
Further than that, there are no more programs written in it for the same reason than there are no more programs written in any interesting languages, I guess; ie largely accidental.
What does this mean? I was under the impression the OCaml compiler did a decent number of floating point specific optimizations, like unboxed arrays and what not.
It never bothered me in Caml Light, let alone when Objective Caml was introduced.
I’ll also +1 the comments about ReasonML which is very promising.
Though I suppose these are both ”language” related — just not strictly the OCaml language.
Facebook Messenger is built using Reason. A few other smaller companies are using it too: https://reasonml.github.io/en/users-of-reason
Wow Air were using it though one probably can't blame that for their collapse.
I guess that list doesn't include straight Bucklescript users either. There are definitely companies out there who use it outside of Reason so the OCaml, in general, is getting some use in industry which is nice.
Coq proof assistant (https://coq.inria.fr). Well, you can say it is language-related, but it’s a lot more than that.
https://rwmj.wordpress.com/2017/06/04/new-in-libguestfs-rewr...
It’s definitely great for things like compilers, though. But I wouldn’t necessarily use it for a Web server.
Besides, there are also multiple processes as possible solution.
- the syntax is not great. I've heard it's one of the reasons why F# was born
- not many people use Ocaml, which makes it hard to find help
- not many good resources. The official documentation is really hard to parse and there isn't much besides it and the reference book (which reads more like a book than a reference).
- no good ways to debug, print objects, test, etc.
- no one seems to agree on what is the standard library or the correct packages to import (for example there are several Option package)
Not available on that site.