tismer at tismer.com
Tue Jan 1 23:13:40 CET 2002
Donn Cave wrote:
> Quoth Christian Tismer <tismer at tismer.com>:
> | Continuations can do even more, they are able to create new
> | control structures for your language. And exactly that it the point
> | which makes them insuitable for Python: They are too powerful.
> | Python has its own control structures, and we don't need a construct
> | with the power to build some. This is oversized, and very oversized
> | construct turns out to be a drawback at some future.
> | What Python needs is a secure mechanism to switch frame changes
> | at certain times. This is not continuations, but microthreads with
> | explicit or implicit switching.
> | I will implement this for Python 2.2, probably with some help
> | of volunteers.
> Could Gordon McMillan's "asyncore turned right-side out" select
> dispatcher have been written with the microthread facility you
> have in mind?
Yes, I'm pretty sure.
> I am sure there's some way to present that capability in terms of
> a pre-defined control structure, instead of raw continuations, but
> it's a pity if it has to be given up because it's too powerful.
No, I no longer think so.
It has to be shrunk down to the capabilities needed.
Having continuations where one-shot continuations (aka frames with
state) are sufficient is not healthy.
I've been thinking of this since a year now, and finally Guido
ciao - chris
Christian Tismer :^) <mailto:tismer at tismer.com>
Mission Impossible 5oftware : Have a break! Take a ride on Python's
Kaunstr. 26 : *Starship* http://starship.python.net/
14163 Berlin : PGP key -> http://wwwkeys.pgp.net/
PGP Fingerprint E182 71C7 1A9D 66E9 9D15 D3CC D4D7 93E2 1FAE F6DF
where do you want to jump today? http://www.stackless.com/
More information about the Python-list