jwacs: Javascript With Advanced Continuation Support(chumsley.org)
chumsley.org
jwacs: Javascript With Advanced Continuation Support
http://chumsley.org/jwacs/demos.html
1 comments
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.
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.
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?
Aside: http://versions.tech.coop/movies/jwacs.mov server is down... do you have a backup?
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.
Sadly, I do not have a backup of the presentation movie; hopefully Bill Clementson has one.
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
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
I don't think it is possible to implement continuations as a library.
That said it's pretty interesting. Even if some of the syntax is slightly jarring.