[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: The Browser Wars are Dead! Long Live the Browser

scheme python
> Forwarded by request:
> > Date: Wed, 23 Oct 2002 15:59:18 +0000
> > From: "Clark C. Evans" <cce@c...>
> > To: John Cowan <jcowan@r...>
> > Cc: Sean McGrath <sean.mcgrath@p...>, xml-dev@l...
> > Subject: Re:  The Browser Wars are Dead! Long Live the Browser
> > 
> > On Wed, Oct 23, 2002 at 10:30:44AM -0400, John Cowan wrote:
> > | 
> > | Python, like Scheme, has continuations.  No other language in regular use
> > | can make that statement.
> > 
> > As I recall:
> >   - >
> >     Python 2.2+ only has generators; for continuations you need
> >     StacklessPython.  Guido looked at continuations, but they
> >     seemed too much of a change, so he went with a lesser cousin
> >     which provides 80% of the benefit with 20% of the implementation
> >     effort.   Details of this can be found in the iterator sig.
> Since Python generators are reified and available to the Python level,
> they seem like continuations to me.

The only difference is that generators can only be resumed to the calling 
context.  They cannot be resumed to arbitrary contexts, as true continuations 
can.  I'm not an expert on these matters, but the long discussion of this on 
python-dev convinces me that there are almost no practical situations where 
this difference is significant and cannot be worked around fairly easily.

Certainly for the several generator idioms that sweeten XML processing, 
resuming to calling context is all you need.

Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
Python&XML column: 2. Introducing PyXML - http://www.xml.com/pub/a/2002/09/25/p
The Past, Present and Future of Web Services 1 - http://www.webservices.org/ind
The Past, Present and Future of Web Services 2 - 'http://www.webservices.org/in
Serenity through markup - http://adtmag.com/article.asp?id=6807
Tip: Using generators for XML processing - http://www-106.ibm.com/developerwork


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.