Re: [pypy-dev] PyPy JIT & C extensions, greenlet
--- On Fri, 9/10/10, Armin Rigo <arigo@tunes.org> wrote:
On Thu, Sep 9, 2010 at 8:04 PM, Andy <angelflow@yahoo.com> wrote:
Is there any plan to make PyPy JIT work with greenlet and C extensions? If so when may that be available?
As far as I can tell it works already. Just download (http://buildbot.pypy.org/nightly/trunk/) or build yourself a stackless version of PyPy; it should contain "cpyext", which means that it should support C extension modules.
Note that callbacks from C to Python do not play nicely with stackless features: if you try e.g. to switch to another greenlet while you are in such a callback, you get a fatal error. Hopefully that's a rare case, but still, it should at least be improved to give you a regular catchable Python exception.
Thanks Armin. Does that mean PyPy will not work with greenlet/gevent/etc? Is there any plan to make PyPy support greenlet? Or is there some fundamental obstacle that would prevent it from doing so? Andy
Hi Andy, On Mon, Sep 13, 2010 at 7:21 AM, Andy <angelflow@yahoo.com> wrote:
Does that mean PyPy will not work with greenlet/gevent/etc?
Sorry if I wasn't clear. PyPy contains greenlet support (since 2005-6). It's part of the same package that we call "pypy-stackless". Armin
On 13/09/10 10:10, Armin Rigo wrote:
Hi Andy,
On Mon, Sep 13, 2010 at 7:21 AM, Andy <angelflow@yahoo.com> wrote:
Does that mean PyPy will not work with greenlet/gevent/etc?
Sorry if I wasn't clear. PyPy contains greenlet support (since 2005-6). It's part of the same package that we call "pypy-stackless".
yes, but it must also be said that at the moment, pypy-stackless and pypy-jit do not work together. ciao, Anto
Hi, On Mon, Sep 13, 2010 at 10:20 AM, Antonio Cuni <anto.cuni@gmail.com> wrote:
yes, but it must also be said that at the moment, pypy-stackless and pypy-jit do not work together.
Oups, sorry. I missed the word "JIT" in the original message of this thread :-( Sorry for the confusion. To answer the original question: it would be nice if someone would show up and help contribute JIT support for Stackless builds of PyPy. I think that the status is that no-one of us is ready to invest a lot of time there, but we can definitely give pointers and get people started and follow their progress. A bientôt, Armin.
--- On Mon, 9/13/10, Armin Rigo <arigo@tunes.org> wrote:
yes, but it must also be said that at the moment, pypy-stackless and pypy-jit do not work together.
Oups, sorry. I missed the word "JIT" in the original message of this thread :-( Sorry for the confusion.
To answer the original question: it would be nice if someone would show up and help contribute JIT support for Stackless builds of PyPy. I think that the status is that no-one of us is ready to invest a lot
OK let me make sure I got it right: PyPy-JIT does not work with pypy-stackless. I'm mostly interested in greenlet, not stackless python. Is pypy-stackless required for greenlet support? Looks like you're saying PyPy-JIT doesn't support greenlet and there's no plan to do so, correct?
Hi Andy, On 09/13/2010 06:18 PM, Andy wrote:
OK let me make sure I got it right:
PyPy-JIT does not work with pypy-stackless. I'm mostly interested in greenlet, not stackless python. Is pypy-stackless required for greenlet support?
Looks like you're saying PyPy-JIT doesn't support greenlet
That's correct.
there's no plan to do so, correct?
I think it's more a case of "no manpower". If somebody is interested in implementing it and shows up in the channel, we can give help. We have currently no time to do it ourselves. Cheers, Carl Friedrich
participants (4)
-
Andy -
Antonio Cuni -
Armin Rigo -
Carl Friedrich Bolz