top | item 16521137

(no title)

vim_wannabe | 8 years 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.

discuss

order

alkonaut|8 years ago

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.

loop0|8 years ago

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.

macintux|8 years ago

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.

orestis|8 years ago

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

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

eggy|8 years ago

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

  [1] http://lfe.io/

karmajunkie|8 years ago

I'm not an elm developer, but i think its closest analogue is probably Reason or bucklescript-tea, neither of which is jvm-based.

leshow|8 years ago

Purescript is lots of fun to use and has a helpful community.