5 ms·
ClojureScript is another plus. I'm unsure what Haskell's story is for frontend dev (I have no Haskell experience).
by city41 6y ago
ClojureScript is another plus. I'm unsure what Haskell's story is for frontend dev (I have no Haskell experience).
- johnday 6y agoThe 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.
- teodorlu 6y agoAs 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/ https://guide.elm-lang.org/