[Stackless] Slp PyPy features (was: endian issues pickling tasklets)

Christian Tismer tismer at stackless.com
Sat Nov 4 12:18:34 CET 2006

Grant McDonald wrote:
> It's a very interesting concept, you could think of it as a simple 
> architecture on which to build grid services.  All you would need to do 
> would be to put a broker architecture around it, some load balancing, 
> failover and security and poof! Stackless does grid computing! :)

Yes, more or less. Some provision is needed to ensure that
we create restartable pickles. This is a bit tricky.

> Chris: I have been meaning to ask how far has stackless come in PyPy? 
> What are it's features compared to the standalone stackless implementation?

It is very far. I think only preemptive scheduling is not yet
implemented, everything else should be there.

PyPy's Stackless is more flexible, unifies concepts like
tasklets and greenlets, and is partially a very readable
reference implementation. I wish to back-port some things
at some point.

Implementing pickling was a bit hard for reasons which deserve
their own talk to explain it, but it works pretty well. I'm not
quite sure about its limitations and would like to ask Stephan
about the status of compatibility?

There are again limitations about what can be pickled. In Stackless,
I thought this would limit the ability of cloning, but this
was wrong.
PyPy has its seperate cloning facility, independent from pickling.
You can make snapshots and duplicate threads of execution. This
is very useful for parallelism and not limited by pickling,
but has the drawback that it is machine dependent.

ciao - chris
Christian Tismer             :^)   <mailto:tismer at stackless.com>
tismerysoft GmbH             :     Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9A     :    *Starship* http://starship.python.net/
14109 Berlin                 :     PGP key -> http://wwwkeys.pgp.net/
work +49 30 802 86 56  mobile +49 173 24 18 776  fax +49 30 80 90 57 05
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
      whom do you want to sponsor today?   http://www.stackless.com/

Stackless mailing list
Stackless at stackless.com

More information about the Stackless mailing list