Hacker News new | ask | show | jobs
by vim_wannabe 3029 days ago
What are some relatively popular alternatives (that are not on the JVM)? Maybe the options are somewhat limited here if you want both to be functional.
5 comments

The Suave-Fable-Elmish stack (Made popular under the "SAFE-stack" name) is very nice. https://safe-stack.github.io/

It has the drawback of the frontend language not being as tiny as Elm is, but it has the benefit (which I think is no little benefit) of having the same statically typed language (F#) on both front and back end.

Whether it's "Relatively popular" is hard to say. It's tiny as far as web stacks popularity goes, but in completely functional web stacks it probably has taken a bite already.

Why not JVM? I'm asking because I'm starting to learn functional and I think Clojure is a very nice language to write both backend and frontend.
The JVM is a great kitchen sink environment. The BEAM and Erlang/Elixir are much more finely tuned for their strengths: distributed systems, fault tolerance, immutable data/functional programming.

If you need raw performance, the JVM is definitely better. If you don't want to have to deal with the inherent tension between a FP language and mutable surroundings, the BEAM is worth a look.

I'm exploring ClojureScript on both client (browser) and server (node).

Or perhaps, some day, https://github.com/clojerl/clojerl.

And there's also LFE (Lisp Flavoured Erlang)[1] if you prefer Lisp to Lua.

  [1] http://lfe.io/
I'm not an elm developer, but i think its closest analogue is probably Reason or bucklescript-tea, neither of which is jvm-based.
Purescript is lots of fun to use and has a helpful community.