News for hackers. Stuff that matters.
Re:Why Clojure? (2018) by city41 on Sunday January 03, 2021 @12:51PM (#25623411)
ClojureScript is another plus. I'm unsure what Haskell's story is for frontend dev (I have no Haskell experience).
Re:Why Clojure? (2018) by teodorlu on Sunday January 03, 2021 @01:32PM (#25623794)
As someone who tried out GHCJS, then Purescript, then Elm, then Clojurescript:

- GHCJS and purescript are powerful, but the learning experience might be steep[1]

- Elm is an excellent entrypoint into ML programming in the browser. Solid story for new users, and a great standard library for interactive web applications.

- ClojureScript differs from Elm in that it embraces its host, with all its power and all its wrinkles. Writing Elm is mostly a smooth experience. Read the guide[2], then you can actually build a web app.

I've spent the most time with Elm. Other people might have different experiences.

[1]: a few years since I tried, might be better now. [2]: https://guide.elm-lang.org/

Re:Why Clojure? (2018) by johnday on Sunday January 03, 2021 @12:56PM (#25623456)
The GHC compiles Haskell either directly to assembly or via LLVM. There is a GHCJS project, which works fine, but personally I've not used it. There's not much of a story in terms of frontend Haskell.

On the other hand, there are two "child" languages of Haskell for the job: Elm, which is a frontend-focused language, and PureScript, which compiles to JS and is designed for that use case.