News for hackers. Stuff that matters.
Re:Elm is Wrong by chenshuiluke on Wednesday November 09, 2016 @01:25AM (#12906704)
What's a good alternative to Elm?
Re:Elm is Wrong by seliopou on Wednesday November 09, 2016 @03:40AM (#12907941)
For nearly half a decade, you have been able to compile OCaml[0] to JavaScript with js_of_ocaml[1]. For a comparison of writing native bindings for both Elm and OCaml (and some TodoMVC code that uses them), check out elm-d3[2], and ocaml-d3[3]. elm-d3 predates the virtual-dom library and was therefore the first Elm library to provide a direct interface to HTML. It also predates the removal of signals in 0.18, so it needs to be ported. Been having some difficulty with that. I've had the native code blessing to publish it for a couple years, but never have.

[0]: http://ocaml.org/

[1]: http://ocsigen.org/js_of_ocaml/

[2]: https://github.com/seliopou/elm-d3

[3]: https://github.com/seliopou/ocaml-d3

Re:Elm is Wrong by srparish on Wednesday November 09, 2016 @02:38AM (#12907221)
Language wise scala.js[1] with cats[2] or scalaz[3]. The FRP story there is unfortunately more complicated.

1| https://www.scala-js.org/ 2| http://typelevel.org/cats/ 3| http://scalaz.github.io/scalaz/

Re:Elm is Wrong by sjrd on Wednesday November 09, 2016 @04:27AM (#12908489)
You can go with the Diode [1] library for an Elm/Redux-like architecture. And with that you don't need to all the way down to cats or scalaz (although you sure always can if you want to).

[1] https://github.com/ochrons/diode

Re:Elm is Wrong by kod on Wednesday November 09, 2016 @08:03AM (#12909913)
Take two average JS programmers. Hand one of them the Elm docs, the other the Diode docs. What do you expect will happen?
Re:Elm is Wrong by magic_quotes on Wednesday November 09, 2016 @12:25PM (#12912314)
Both will continue using typescript/redux/react combo. Scala.js mostly makes sense if you are already familiar with scala, that's hardly surprising.
Re:Elm is Wrong by elbear on Wednesday November 09, 2016 @02:53AM (#12907399)
Depends on what you're looking for. Keep in mind that the OP came to Elm with a Haskell mindset. Elm is simpler than Haskell (yes, at the cost of some boilerplate).

If you program in JavaScript and you want a language with no runtime exceptions, go for Elm. If you want type classes, go for PureScript.

Re:Elm is Wrong by jweir on Wednesday November 09, 2016 @01:37AM (#12906767)
I don't know if it is good, but there is http://www.purescript.org/

Maybe look into https://github.com/clojure/clojurescript ?

Re:Elm is Wrong by Paradigma11 on Wednesday November 09, 2016 @03:35AM (#12907871)
Re:Elm is Wrong by ModernMech on Wednesday November 09, 2016 @01:44AM (#12906805)
Eve looks like it is filling the same sort of role: http://programming.witheve.com
Re:Elm is Wrong by coolsunglasses on Wednesday November 09, 2016 @01:59AM (#12906890)
PureScript, BuckleScript, and GHCJS, are all good options depending on your risk sensitivity and lang preference.
Re:Elm is Wrong by ggregoire on Wednesday November 09, 2016 @01:37AM (#12906763)
JavaScript?