Thursday, April 07, 2005

Ruby, continuations, the web and you

Amit Rathore at ThoughtWorks got me interested in using continuations in web applications. Gregor Hohpe did some interesting work there moving away from the call stack in program design.

Keeping in line with these approaches, I ran across a great link posted to the Ruby Talk mailing list: Continuations on the Web.

Ruby, unlike Java, has full native continuations and call/cc ala LISP. This makes for some really interesting code, mind-bending and very rewarding. For web programming, it moves you away from a messaging model to more traditional program flow: you get to code linearly, but the program is still multiplexed in the web way.

There is a great future for futures.


(I had trouble with the link. A bright spark suggested the wayback machine.)

Post a Comment