On Tue, 22 Jan 2002 10:47:41 +0200, Antti Koivunen <[EMAIL PROTECTED]> 
wrote:

> Are there any technical reasons to be tied to a specific syntax (apart 
> from optimization issues)? AIU, if the semantics are clear, it should be 
> possible to define the necessary abstractions to allow the use of 
> different syntaxes. IMO, one obvious implementation would BSF, as it's 
> already included in the Cocoon distribution and would provide "of the 
> shelf" support for JavaScript (Rhino) and Python (Jython), among others.
> 
> It makes sense to limit the flexibility to some extent, but I don't see 
> the choice of syntax as a major issue, as long as the context objects 
> and interactions are well defined, and everything's properly documented. 
> IMO, it would be a advantage to support popular scripting languages.

The key technical issue is a language that support continuations. None
of the languages above supports it. To read more about what
continuations are and how they can help in building Web applications
check-out the following papers:

  http://youpou.lip6.fr/queinnec/Papers/webcont.ps.gz

and

  http://www.cs.rice.edu/CS/PLT/Publications/esop2001-gkvf.ps.gz

In case you need some quick introduction to Scheme, here's an online
introduction:

http://www.cs.rice.edu/~dorai/t-y-scheme/

Here's a longer, more complete document (is actually a printed book):

http://www.scheme.com/tspl2d/

The relevant threads on the Cocoon-dev on how continuations can be
used in the scope of Cocoon are here:

http://marc.theaimsgroup.com/?l=xml-cocoon-dev&w=2&r=1&s=flowmaps%3A+the+wrong+approach&q=t

http://marc.theaimsgroup.com/?w=2&r=1&s=%5Brt%5D+Managing+Flow+and+Resources&q=t

It's a lot of reading, so you may want to look at a complex sample of
how one would write a Web app using a language with continuations:

http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=100802231017059&w=2


Hope this helps,
-- 
Ovidiu Predescu <[EMAIL PROTECTED]>
http://orion.rgv.hp.com/ (inside HP's firewall only)
http://sourceforge.net/users/ovidiu/ (my SourceForge page)
http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other stuff)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to