by cassepipe · 5y ago · 0 comments
The confusing part is that some people decided to name a whole ecosystem project with a name that reads like it's a language (ReasonML) and some other had the wonderful idea to name a compiler that also reads like it's a language (Bucklescript) but to make it more simple they changed the name to... Rescript, but wait now it's also the name of the language. Oh and also Reason calls itself a programming language (when it's just an alternate syntax).
Brilliant.
In any case, Dream has examples showing full-stack (OCaml client+server) usage with both ReScript and Melange:
- ReScript: https://github.com/aantron/dream/tree/master/example/w-fulls...
- Melange: https://github.com/aantron/dream/tree/master/example/r-fulls...
For good measure, there is also an example with the other OCaml-to-JS compiler...
- Js_of_ocaml: https://github.com/aantron/dream/tree/master/example/w-fulls...
As an outsider with respect to the community, I can't think of a bigger impediment to adoption than a scenario like this. Apart from something catastrophic like a BDFL ghosting or going closed source.
I learned from all this, that at least for the near term, OCaml is by far the most stable part of the... OCaml ecosystem :) I'm fine with that, since I started out with OCaml and like it, but I do worry for everyone that prefers JS-like syntax and wants to do a lot of client-side programming.
As far as I understand it - with ReScript, deploying via ocaml compile to native is not supported - you get nodejs as the server?