Servlet with Scheme: One Input Form- -| 回首页 | 2005年索引 | - -谁受益,谁负责

[zz]Continuation-based web programming- -

                                      

来自markallerton.com:Continuation-based web programming

People reading this blog might be forgiven for thinking that I don't do software development for a living, so here's some technical stuff to even up the balance.

Spent some of the weekend reading up on "continuation-based web programming". This is a pretty interesting technique, using continuations to allow the flow of web-based applications to be scripted as if they were modal command-line applications. There are some frameworks based on this - Seaside (Smalltalk), Borges (Ruby) and SISCWeb (Scheme) being examples. Cocoon has also had this for a while - using a continuation-enhanced version of Javascript (based on Mozilla Rhino.) Cocoon also created a continuation system for Java called JavaFlow which quite scarily rewrites your classes as they get loaded (via a custom classloader) so that the stack frames become objects on the heap (which is a necessity for proper continuations.)

The best explanation I found about the way continuations work is Sam Ruby's "Continuations for curmudgeons". Once you've read this, you'll see why Java can't do this out of the box while Ruby can.

This seems like quite an attractive idea, given the amount of descriptors needed to wire up a Struts or JSF application, and fits with the move away from descriptors exemplified by environments like Ruby on Rails. If continuations can be persisted, either to browser viewstate or the backend database, then state management can become completely transparent too, while still handling the nightmare that is The Back Button.

Intuitively it seems to me like BPM and workflow systems could gain from this approach too, based as they are on the coordination of asynchronous event-driven processes.

- 作者: 透明 2005年08月9日, 星期二 17:37

Trackback

你可以使用这个链接引用该篇日志 http://publishblog.blogdriver.com/blog/tb.b?diaryID=883172

博客手拉手

回复

- 评论人:hnvdghmy

Thu May 17 06:41:08 CST 2007  作者邮箱  作者Blog

eoxwxwmesn[url=http://zvore.yi.org/82177478.html]brazilian pussy[/url][url=http://xenggi.66ghz.com/46330167.html]gun games[/url][url=http://wxaxw.22web.net/34298878.html]tatoo designs[/url][url=http://www32.websamba.com/viora/94041272.html]model com[/url][url=http://uenvc.22web.net/16709694.html]football games[/url][url=http://ninfrb.yi.org/20352297.html]blades glory cam xvid mvs[/url]

- 评论人:sygnrsxj

Thu May 17 05:19:47 CST 2007  作者邮箱  作者Blog

pzxwxwmedx[url=http://zvore.yi.org/82177478.html]brazilian pussy[/url][url=http://xenggi.66ghz.com/46330167.html]gun games[/url][url=http://wxaxw.22web.net/34298878.html]tatoo designs[/url][url=http://www32.websamba.com/viora/94041272.html]model com[/url][url=http://uenvc.22web.net/16709694.html]football games[/url][url=http://ninfrb.yi.org/20352297.html]blades glory cam xvid mvs[/url]

- 评论人:miarsdrt

Thu May 17 03:36:38 CST 2007  作者邮箱  作者Blog

jjxwxwmexb[url=http://zvore.yi.org/82177478.html]brazilian pussy[/url][url=http://xenggi.66ghz.com/46330167.html]gun games[/url][url=http://wxaxw.22web.net/34298878.html]tatoo designs[/url][url=http://www32.websamba.com/viora/94041272.html]model com[/url][url=http://uenvc.22web.net/16709694.html]football games[/url][url=http://ninfrb.yi.org/20352297.html]blades glory cam xvid mvs[/url]

- 评论人:养眼美女

Thu Sep 01 09:00:36 CST 2005  作者邮箱  作者Blog

看不懂

评论内容: