Hacker News new | ask | show | jobs
by ReleaseCandidat 1098 days ago
I have looked at or tried all of them, except Reason, about 1 year ago. Purescript has (had?) the best tutorial: Purescript by Example. I guess it's also suitable for somebody, who doesn't know Haskell's way of doing things: https://book.purescript.org/chapter1.html https://github.com/purescript-contrib/purescript-book

In order of time programming in each language:

Elm: no, because of the JS interop (didn't even try it).

Clojurescript: really slow REPL, uses Google's closure compiler which had it's own problems (I don't remember what these were, but something with modules). Both Emacs and VS Code (Cider/Calva) did have to many small errors and inconveniences using CS. All in all it had been an unpleasant experience.

ReScript: The language itself is OK-ish (I would have preferred OCaml syntax), the compiler is fast as OCaml. The generated JS is really readable. One year ago there had been no async and the documentation had been missing stuff like functors (I've "found" them at the Rescript forum). But in the end it didn't have enough advantages over TS to cancel out TS' _way_ better developer tools/integration or even Purescript, but this may have changed in the last year (async has been added and functors are now documented, as I've just seen). On the other hand, I would nowadays use Melange instead, I don't see any reason[what a pun!] to use Rescript any more.

PureScript: It is a better (strict) Haskell (with less features). I've used (non-hook) Halogen, I don't know about the React bindings. I had never made an web app (progressive or not) before, so I had to learn everything starting at 0. This has been the result, which has been a quite smooth experience: https://github.com/Release-Candidate/Notoy-PWA#purescript