The core OCaml system: compilers, runtime system, base libraries
I'm a go developer who started learning ocaml roughly a year ago and I've fallen in love with it. I'be tried a couple of fp languages before. They've never clicked with me but ocaml did. I don't blame the other languages tho as it's because of the excellent course cs3110 by Michael Clarkson why it finally clicked. Ocaml still has a lot of sharp edges especially in terms of tooling, up to date "best practices" etc which is surprising for how old ocaml already is. But something is happening within the ocaml community. Amazing libraries are popping up left and right and you can feel how this mature language with its small community is just a couple of small steps away from gaining way more adoption. Just today the new ocaml.org launched. I'd say now is the time to join the ocaml community.
Just one tip: if you have any trouble with ocaml , the language has an alternative syntax made by Facebook called ReasonML that aims to make the language easier for people coming from other languages. This helped me a lot when I was learning ocaml.
Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.
Elixir is a dynamic, functional language for building scalable and maintainable applications
If you want a more quantified comparison, here is Elixir's parser, and here is OCaml's. Removing a lot of the function definitions that are left in ocaml's parse file, we can still see that Elixir's syntax is about a third of Ocaml's. For reference, Java would be about twice as much as OCaml's. Elixir does have some sugar on top of things that might not be necessary, e.g. sigils for strings and so on, but if you compare core elixir to core ocaml (or most other functional languages), or you compare full Elixir to full OCaml, you see that it's a smaller language. And to me, it provides overall a very Go-like experience.
The Io Language
8 projects | news.ycombinator.com | 18 Mar 2023
Ask HN: Learning Functional Programming in 2022?
2 projects | news.ycombinator.com | 3 Aug 2022
Editor Support for ReasonML in VSCode with Melange
3 projects | dev.to | 31 May 2022
Found in my own code from less than a week ago. I don't know what I was thinking...
2 projects | /r/badcode | 6 May 2022
How long did it take you to get good at React?
2 projects | /r/reactjs | 21 Aug 2021