When we (darklang.com) were working with Rescript, I was not optimistic about Melange's approach, but in retrospect I think it has legs.<p>The challenge with ReScript is that the authors really were focusing on the JS ecosystem, and didn't care at all about OCaml. Their fusion with the ReasonML community didn't make a whole lot of sense. ReScript is a much better language now that it has split than it was then, if you look solely through the lens of a better JS.<p>But, as Elm and other compiled-to-JS languages have learned, Typescript has gotten good enough that other languages might not be sufficiently better than TS to attract enough interest to have a vibrant community. Doubly so since the JS-interop story isn't nearly as good in ReScript as it is in Typescript (though it's much much better than in Elm).<p>However, the aim of writing programs in OCaml which compile to nice JS and also native OCaml, and allowing both client and server to be written in OCaml, remains valid and interesting (and I would argue was held back by js_of_ocaml, the pre-existing way to do it). So I think there is something interesting here, though it isn't a ReScript competitor except tangentially.<p>Though I cannot really understand where ReasonML (a JS-like syntax for OCaml) fits into this - if the target is OCaml devs, than surely the ReasonML syntax stuff is not valuable anymore?
In the unlikely event you are confused on the difference between ReScript, Reason, and ReasonML, I recommend this post:<p><a href="https://ersin-akinci.medium.com/confused-about-rescript-rescript-reason-reasonml-and-bucklescript-explained-ab4230555230" rel="nofollow noreferrer">https://ersin-akinci.medium.com/confused-about-rescript-resc...</a>
I have nothing to say other than thank you! I might not use OCaml often myself, but I appreciate the effort to improve the ML ecosystem in any way :) I was a bit disappointed with the ReScript fork abandoning the compatibility with OCaml so this project was welcome news
As if the whole Reason/ReScript story wasn't complicated enough already :D<p>First, we had BuckleScript, that compiled OCaml to JavaScript to bring the OCaml type system to the Web.<p>Then we had Reason, that brought JS syntax to OCaml, so it's easier to grasp for JS devs.<p>Seemingly, some people didn't care about OCaml at all, and forked (I guess?) Reason to ReScript, that focused on JS compilation. They also added a few syntax changes in the process.<p>Now, the remaining (pre-fork) Reason people created a new(?) compiler that's an alternative to BuckleScript, and compiles OCaml and Reason to JS.<p>While I appreciate the effort, and think ReScript and Reason are superior to TypeScript, I totally understand why it didn't get as popular as this superiority implies.
Might as well ask this here, but any thoughts on how ReScript / ReasonML compare to Elm, PureScript, or ClojureScript? If someone were looking for a fp language that compiled to JS, how would they think about the pros and cons of the available options?<p>Last discussion I could find was from 2018 [1].<p>[1] <a href="https://news.ycombinator.com/item?id=17910069">https://news.ycombinator.com/item?id=17910069</a>
What is the status of ReasonML? My first experiences with ReasonML were very nice, because I found OCaml syntax confusing. I kinda left around the time ReScript got introduced.
But OCaml syntax after a while isn't that bad, and in F# and Scala land I do miss the compile time speed of OCaml.
First multicore, now this? This makes me really happy.<p>OCaml is the most fun I've ever had writing code; seeing this after the whole Re* rebranding death spiral makes me hopeful that fullstack OCaml is still a possibility.<p>Thank you!
Just a note, melange is also the name of a computer language workbench from INRIA (<a href="http://melange.inria.fr/" rel="nofollow noreferrer">http://melange.inria.fr/</a>) and an APK builder (<a href="https://edu.chainguard.dev/open-source/melange/overview/" rel="nofollow noreferrer">https://edu.chainguard.dev/open-source/melange/overview/</a>)<p>Both of those came up before melange.re when searching for a hello world example.
Thanks for putting the time and effort into this.
I was very sad to see the departure of rescript, so I am happy to see this wonderful toolchain back to the Ocaml ecosystem.
A lot of the ecosystem is written in TypeScript (heavy on structural typing). Last I've checked OCaml still doesn't have substructural row polymorphism or set theoretic types, so this seems to be a futile endeavor until underlying fundamentals in its type system are addressed.<p>Elm & PureScript I believe solved this problem.
Congratulations on the project @anmonteiro90. Reading the thread makes me understand more about the situation of Rescript and ReasonML after the split. It’s totally makes sense now. I hope to pick up some OCaml project soon