QCon London 2009: Script JVM with JavaScript and get stack-based continuations

Attila Szegedi today suggested using JavaScript as a scripting language for server side JVM systems, during his JavaScript in the Enterprise talk at QCon London 2009 conference. Szegedi named stack-based continuations as a huge advantage of that approach. Stack-based continuations are effectivelly asynchronous calls with a callback, but without the weird code that typically comes with closures, asynchronous calls and callbacks.

not write this explicitly, have the framework do it for you so that code looks like the usual procedural program

Szegedi demonstrated this approach with the Mozilla Rhino JavaScript runtime engine. He also mentioned two pre-processing tools that extend JavaScript with new operators and pre-compile from human-readable javascript-like syntax into javascript code which utilises stack-based continuations.