It is a pleasure to announce the release 0.5.4 of Fmlib_browser. The library helps to write interactive webapplications running in the browser. It is quite easy to write interactive webapplications with the help of this library. The user code is purely descriptive (aka functional) which avoids many common errors.
One of my goals in learning OCaml is to create a type-safe bridge between OCaml and Elm as I really like Elm for the frontend, I think its architecture makes a lot of sens.
Anyhow, this is gonna take me quite some time as I have a lot to learn but with you’re lib, I can see some options opening up, I may be able to do full-stack OCaml in a very nice way instead!
Here’s my implementation of the temp converter (with a few variations), for anyone not familiar with this architecture and wanting extra reference points.
N.B. I’ve got a hot-reload setup in that repo, though a little hacky.
Overall I’m pretty sure I prefer OCaml, syntax wise and for its consistency.
The tooling is very good though, good to know there are options!
I ported over the same exercise to Rescript here if anyone’s interested and wants to do a quick compare (it’s almost a word for word clone of the original):