--
Flapjax home page: www.flapjax-lang.org
Flapjax list: groups.google.com/group/flapjax
Post: fla...@googlegroups.com
Unsubscribe: flapjax-u...@googlegroups.com
You should look at Michael Greenberg's undergrad thesis:
http://www.cs.brown.edu/research/pubs/theses/ugrad/2007/greenberg.pdf
"Widespread use of HTML [W3Cb], JavaScript, and the DOM [W3Ca] has led
to sub-optimal ‘best practices’. We apply the bidirectional
programming formalism of lenses [FGM+05] to define user interfaces in
JavaScript that are declarative, composable, clear, and concise — in
half the code. Additionally, we define two new bidirectional combinator
over lists, order and list map."
which was done in the context of Flapjax ("This work grew out of
frustrations with the need to use the DOM as an ad hoc data model when
programming even the simplest Flapjax programs with remote updates").
You may be able to get his code from him and use it as a starting
point.
Shriram
My thesis work remains on-line at
<http://www.cis.upenn.edu/~mgree/ugrad/lenses/>, and I'd be happy to
answer any questions you have.
Also, a great deal of progress has been made on lenses, mostly by
Daniel Wagner. I think his latest work, "Edit Lenses", would sit
excellently atop JS/Flapjax.
Cheers,
Michael