April 17, 2004

Continuations in Java.

A great idea from Stephan Michels and Torsten Curdt. They've added continuations to Java though a custom class loader. ContinuationClassLoader.java - view - 1.6

/**
* The classloader breakes the methods of the classes into pieces and
* add intercepting code to suspend the execution of the method.
*
* This code is based on the original idea of the BRAKES project.
* (http://www.cs.kuleuven.ac.be/~eddy/BRAKES/brakes.html).
*
* @author Stephan Michels
* @author Torsten Curdt
* @version CVS $Id: ContinuationClassLoader.java,v 1.6 2004/04/06 07:40:48 antonio Exp $
*/

To understand what a continuation does, imagine a "save game" for any application, where you can freeze a moment in the program execution store it and jump back to it at any time. (Yes that can cause problems with side-effects like database updates and device initialization, but it can make a website much more reliable).
For more on continuations look here.

Posted by bill at April 17, 2004 04:58 PM
Comments