Re: [Haskell-cafe] Functional Reactive Web Application Framework?

oops, sorry, keyboard accident
I assume you want to write FRP in a Haskell-embedded DSL and generate FRP'd JavaScript. If you wish to use Flapjax as a supporting library I'd be glad to help.
I'm curious: how difficult is it nowadays for in-page JavaScript to control the evolution of its surrouding page, FRP-style? I used to do something like that, but with VRML+JavaScript instead of HTML +JavaScript (there's a screencast for those without VRML viewer;-):
http://community.haskell.org/~claus/FunWorlds/VRML/
and I found that mapping FRP style behaviours and events wasn't the problem (though VRML has better support for this than HTML), the problem was gaining the same advantages one would have from embedding FRP in a functional language. Problems included scoping, linking dynamically created material with enclosing scope (JavaScript being in strings with scopes separate from the enclosing VRML, VRML to be created dynamically also via strings, also in their own scope)
This became particularly obvious for dynamic recursion of reactive behaviours, somewhat like page n = <code involving n> `until` (keypress `then` (\key-> page n)) How are such things handled in Flapjax, if it follows the embedded compiler approach? Claus

This became particularly obvious for dynamic recursion of reactive behaviours, somewhat like page n = <code involving n> `until` (keypress `then` (\key-> page n))
We have this function, which permits patterns like the one above: http://www.flapjax-lang.org/docs/#tagRec tagRec does not permit mutual recursion. We've considered writing a generalization that does. But, it's almost easier to imperatively close the loop. Arjun
participants (2)
-
Arjun Guha
-
Claus Reinke