DEV Community

Discussion on: Getting your feet wet with OCaml

Collapse
 
theodesp profile image
Theofanis Despoudis

Unfortunately those languages like OCaml, Haskell will only be for destined for a weekend workshop. The closest ones you can get that are in the mainstream are F#, Scala, and Clojure.

Collapse
 
bobbypriambodo profile image
Bobby Priambodo • Edited

Mainstream, probably unlikely. But certainly not only weekend workshop in my opinion. Facebook has a list of tools used that is built on OCaml (flow, infer, pfff, Hack's parser). Docker's DataKit and VPNKit also use OCaml, and their desktop apps for Windows and Macs have some OCaml code too. ReasonML and BuckleScript are gaining traction too on frontend landscape. Finance and trading also seems to attract the use of OCaml, for example at Jane Street and Bloomberg. Ahrefs uses it for crawling the web, processing 6 billion pages a day. I've got this information from this page on OCaml's official site.

For Haskell, among others Facebook also uses it to power their spam detection systems. Pretty sure there are many companies too using Haskell in production (at least there seems to be more Haskell job openings than OCaml from what I can see).

That said, I don't know about Clojure, but indeed F# and Scala may be more popular due to their deep integration to .NET and JVM.

Collapse
 
theodesp profile image
Theofanis Despoudis

It may have some uses in production but in reality, it is a drop in the ocean. It has currently only 4854 Q/A in stack overflow compared to Haskell which is 35,351. I think Haskell has attracted more interested parties in general.

In reality, I think both languages are powerful but not practical. Each has its own problems that make most programmers wonder if they can be used reliably in production. I understand that they have their use cases.

I don't mind learning new languages but I would like to build something that I will understand 6 months when I revisit the code. For me, I've found that only Python and Go can do that, it may be different for other people though.

Thread Thread
 
bobbypriambodo profile image
Bobby Priambodo • Edited

I get where you're coming from. Perhaps a world where these languages are mainstream is not going to be here any time soon, and it's also a bit of chicken-and-egg problem that you will have a hard time improving if not many use it, and you won't be able to get more people to use it if it's not improved.

Hopefully it's taking off on frontend world, though, with Elm, ClojureScript, ReasonML, and PureScript each getting a considerable growing community.

Thanks for your input!

Thread Thread
 
theodesp profile image
Theofanis Despoudis

I like ClojureScript followed by PureScript and recently I was playing with Scala.js. As for ReasonML I was thinking it may be better if you use the native module to do server-side development as it will be more suitable for it.