[pypy-dev] PyPy JIT & C extensions, greenlet

Christian Tismer tismer at stackless.com
Tue Sep 28 16:39:38 CEST 2010


  On 9/27/10 2:29 PM, Andy wrote:
> Why wouldn't pypy work with greenlet but would work with Stackless? greenlet calls itself a spin-off of Stackless. Isn't greenlet a subset of Stackless without the scheduling? Could you explain a bit more?
>

This is a deep misconception. Neither stackless nor greenlets
work with PyPy. Instead, a special coroutine version was written
for PyP's RPython, and then Stackless was written as an application
module. There is a greenlet implementation as well.

They both rely on the stack unwinding, which is not yet implemented
for the Jit.

The original greenlets and stackless have some similarities, since
they use the same tricks to modify the stack in assembly. This is
not related to PyPy, this reasoning is just the improper level.

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/




More information about the Pypy-dev mailing list