Re: [pypy-dev] Biting off more than I can chew

2012-02-24 Thread Greg Bowyer
Thats pretty awesome. So if anyone else is willing to join in a challange, I have an example first steps piece of C that uses the azul interfaces to attempt to grab a blob of memory. https://bitbucket.org/GregBowyer/pypy-c4gc/raw/1889f31b43e5/azm_mem_test/test.c I was expecting my code to no

[pypy-dev] Cython and cpyext performance (was: Re: libgmp)

2012-02-24 Thread Stefan Behnel
Hi Amaury, Amaury Forgeot d'Arc, 24.02.2012 10:27: > 2012/2/24 Stefan Behnel >> So, as a reply to the OP: seeing the current advances in getting Cython >> code to run in PyPy (interfacing at the C-API level), another option would >> be to do exactly as you would in CPython and implement the perfor

Re: [pypy-dev] libgmp

2012-02-24 Thread Amaury Forgeot d'Arc
Hi Stefan, 2012/2/24 Stefan Behnel > So, as a reply to the OP: seeing the current advances in getting Cython > code to run in PyPy (interfacing at the C-API level), another option would > be to do exactly as you would in CPython and implement the performance > critical parts of the code that hea

Re: [pypy-dev] libgmp

2012-02-24 Thread Armin Rigo
Hi Stefan, On Fri, Feb 24, 2012 at 09:17, Stefan Behnel wrote: > However much faster ctypes can be in PyPy than in CPython, you > just can't beat the performance of a straight block of C code when the goal > is to talk to C code. That's wrong from a pypy point of view --- or at least not helpful

Re: [pypy-dev] libgmp

2012-02-24 Thread Stefan Behnel
Maciej Fijalkowski, 24.02.2012 03:18: > On Thu, Feb 23, 2012 at 6:56 PM, Timothy Baldridge wrote: >> For a project I'm working on, I'd like to have support for gmp in >> pypy. I have a ctypes pypy module, but from what I understand, pypy's >> ctypes are a bit slow compared to CPython. What's the be