Re:jwacs: Javascript With Advanced Continuation Support
by chumsley on Monday February 02, 2009 @01:25PM
(#462638)
Neil Mix implements similar transformations in Javascript in Narrative JS: http://www.neilmix.com/narrativejs/doc/. However, as I recall it aims more to provide some of the main benefits of continuations rather than a complete implementation of continuations on top of Javascript, which is more where I was trying to go with jwacs.
Jwacs introduces very little new syntax to Javascript; I'm curious to hear which bits you find jarring, and what you would have preferred to see.
Re:jwacs: Javascript With Advanced Continuation Support
by andreyf on Monday February 02, 2009 @02:19PM
(#462717)
Welcome to news.YC! I'm a big fan of your work (well, jwacs and markdown.el) ... would love to see you as a regular around here :)
Aside: http://versions.tech.coop/movies/jwacs.mov server is down... do you have a backup?
Re:jwacs: Javascript With Advanced Continuation Support
by chumsley on Monday February 02, 2009 @02:57PM
(#462777)
Thanks very much! For both the welcome and the compliments. :)
Sadly, I do not have a backup of the presentation movie; hopefully Bill Clementson has one.
Re:jwacs: Javascript With Advanced Continuation Support
by apgwoz on Monday February 02, 2009 @12:08PM
(#462521)
But, it extends the syntax of JS, so the only thing one can do, is to create a compiler for it to compile into JS that is compatible with the target interpreter (most likely a web browser).
In this case, I believe he outputs the "compiled" (more appropriately maybe, "transformed") code in Continuation Passing Style[1] where appropriate.
[1]: http://en.wikipedia.org/wiki/Continuation-passing_style
That said it's pretty interesting. Even if some of the syntax is slightly jarring.