cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ovidiu Predescu <ovi...@apache.org>
Subject Re: Continuation-enabled Rhino status (was: Re: [vote] Starting 2.1-dev)
Date Thu, 11 Apr 2002 03:21:22 GMT
On Wed, 10 Apr 2002 14:02:34 -0400, Jason Foster <jafoster@uwaterloo.ca> wrote:

> > For example it would be nice to have language constructs that
> > tell that a variable's value should not be captured in a continuation,
> > and how its value could be restored after the continuation is
> > resurrected.
> 
> A portion of this can be handled by the "volatile" and "transient" reserved 
> words, that currently do not have any particular semantics.
> 
> The ECMAScript 4 proposal also includes support for "getters" and "setters"
>   that could possibly be hooked into the continuation system to deal with 
> the "restoring after resurrection" problem, much like Java2 reference 
> objects.

Um, this is interesting. Let me take a look at the reserved keywords
above, and the getter and setters for ECMAScript 4. I don't know about
Rhino support for these, probably it's not there yet.

> OK, I'm a little fixated on JavaScript :)  That's because I understand 
> immediately how to solve a problem in that style of language.  I've stared 
> at a few books describing Scheme and the like, and so far I'm (sort of) 
> comfortable writing the Towers of Hanoi but the thought of doing "real" 
> coding fills me with dread.

Yes, I understand you. I was not imposing Scheme for the flow
language, it's just an alternate language you should be able to
use. What I was referring to in my previous email is a language whose
syntax and semantics is closer to JavaScript, but not necessarily the
same. Having our own implementation would allow us to do all sorts of
optimizations for continuations-type things. It's a lot of work though
to get started, and may be difficult to promote. We'll see whether
this makes sense or not depending on how Rhino serves our needs.

Regards,
-- 
Ovidiu Predescu <ovidiu@apache.org>
http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other stuff)

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message