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

Maciej Fijalkowski fijall at gmail.com
Mon Sep 27 14:30:50 CEST 2010


PyPy stackless does support greenlets. PyPy would not work with
CPython C module called "greenlets".

On Mon, Sep 27, 2010 at 2:29 PM, Andy <angelflow at yahoo.com> 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?
>
> Thanks.
>
> --- On Mon, 9/27/10, Maciej Fijalkowski <fijall at gmail.com> wrote:
>
>> From: Maciej Fijalkowski <fijall at gmail.com>
>> Subject: Re: [pypy-dev] PyPy JIT & C extensions, greenlet
>> To: "Ian P. Cooke" <ipc at srand.net>
>> Cc: pypy-dev at codespeak.net
>> Date: Monday, September 27, 2010, 8:23 AM
>> Hey.
>>
>> greenlet C module is quite incompatible with pypy and won't
>> work.
>> However making pypy work with jit and stackless is
>> something that
>> requires a bit of work only (teaching jit how to unroll the
>> stack
>> mostly) and I plan to look into it in the very near
>> future.
>>
>> Cheers,
>> fijal
>>
>> On Mon, Sep 27, 2010 at 1:49 PM, Ian P. Cooke <ipc at srand.net>
>> wrote:
>> >
>> > There was a recent thread with the same subject and I
>> would like to look
>> > into this a bit more.
>> > I knew pypy-stackless wouldn't work after I built a
>> working 64-bit pypy
>> > w/ JIT, well, now I'm intrigued.
>> >
>> > I will look at the code more closely soon.  Armin,
>> Carl Friedrich, would
>> > you answer a couple of questions in the mean-time?
>> >
>> > What is the largest roadblock to making pypy-stackless
>> work on pypy w/ JIT?
>> > Would it be possible/easier to port the greenlet
>> module?
>> >
>> > Having built-in support for co-routines would be very
>> nice but my own
>> > goal is to get greenlet working in any manner.
>> > If I could build a 64-bit pypy w/ JIT and then
>> easy_install greenlet,
>> > that would work for me.
>> >
>> > Thanks,
>> >     Ian
>> >
>> > P.S. congratulations on all your recent progress!  I
>> always look forward
>> > for the next pypy blog update :)
>> > _______________________________________________
>> > pypy-dev at codespeak.net
>> > http://codespeak.net/mailman/listinfo/pypy-dev
>> >
>> _______________________________________________
>> pypy-dev at codespeak.net
>> http://codespeak.net/mailman/listinfo/pypy-dev
>
>
>
>



More information about the Pypy-dev mailing list