Re:Elm: declarative language that compiles to HTML, CSS and JS
by scarmig on Monday December 10, 2012 @06:11PM
(#4902125)
Briefly, how would you summarize the semantics of FRP in your language as compared to Yampa in Haskell?
Re:Elm: declarative language that compiles to HTML, CSS and JS
by wheatBread on Monday December 10, 2012 @08:33PM
(#4902632)
A generalization. Arrowized FRP (as introduced in Yampa) can be entirely embedded in Elm.
The Automaton library is the beginnings of such an embedding: http://elm-lang.org/docs/Automaton.elm
To be more concrete, in Elm you can work directly with signals if you want. In Yampa you cannot; you only get "signal functions" (which Elm has as well in the form of Automatons).
2) That is totally true! The idea is quite general. I think it works best in a strongly typed language like OCaml or Haskell, but it could work anywhere. FrTime is a Scheme/Lisp/Racket version of FRP. My personal opinion is that it works best in Elm though :P