hengestone / js-functional-languages

Resources for functional languages that compile to javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

js-functional-languages

Looking for a lightweight functional language to help create a pleasant workflow for creating front-end applications. Extra points if it can easily be used with an Erlang back-end.

Notes

  • The Haskell family of languages tend to have good REPL and IDE support, but tend to not emphasize runtime or compile time performance AFAICS.
  • WebAssembly output/interop also counts.
  • Does it e.g. make it easy to create apps with S/Surplus? Indented syntax to create HTML elements a al SLIM/HAML/Jade/Pug etc. is nice.
  • Enforcing JSX is a throwback to HTML. Just say no.

The usual suspects

  • ReasonML [https://reasonml.github.io/] Fast compiler, OCaml front-end. Bucklescript back-end.
  • PureScript [http://www.purescript.org/] Slow-ish compiler, Haskell-lite, dead-code elimination makes for small output. Boilerplate+. Erlang backend. Active community. Good IDE, REPL support.
  • Elm [http://elm-lang.org/] Slow compiler, Haskel-lite--, brings it's own standard library. Boilerplate++

General purpose

Erlang

The Zoo

Java ecosystem

About

Resources for functional languages that compile to javascript

License:Mozilla Public License 2.0