This is probably better as a blog article, but I’m guessing anyone who is interested is quite likely to find it here. It’s just some short notes on my first impressions (as an ocaml beginner) of the fmlib_browser web-app library.
- Port of Elm to ocaml + js_of_ocaml
- Available on opam with source on GitHub - hbr/fmlib: Functional Monadic Library for Ocaml
- Seems like an accurate port - covers all the basics
- Good documentation
- Easy to start using
- Don’t forget to build with
I’ll not repeat the excellent documentation and in any case for a general overview you can probably rely on the Elm introductory material too.
Boring in the best way. Does what it says on the tin. There are some docs on hooking it up to dune and it works with ocaml 5.0.
dune build --profile=release then the output will be stripped and minimised and you will be closer to 100KB. When gzipped for transfer this will come down to about 33KB as a starting point.
That sounds large, but it increases fairly slowly from that point as you add actual code.
If you like the idea of Elm, are already working in OCaml and don’t need a large ecosystem this might do what you want. It’s not suited to small plugins but for a dashboard or other application you would leave open for a long time should work fine.