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

Re: [pypy-dev] libgmp

2012-02-23 Thread Maciej Fijalkowski
On Thu, Feb 23, 2012 at 7:06 PM, William ML Leslie wrote: > On 24 February 2012 13:05, William ML Leslie > wrote: >> On 24 February 2012 12:56, 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 un

Re: [pypy-dev] libgmp

2012-02-23 Thread Maciej Fijalkowski
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 best way to get > access to get access to li

Re: [pypy-dev] libgmp

2012-02-23 Thread William ML Leslie
On 24 February 2012 13:05, William ML Leslie wrote: > On 24 February 2012 12:56, 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. > >

[pypy-dev] libgmp

2012-02-23 Thread Timothy Baldridge
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 best way to get access to get access to libgmp from python? Would you be against a pull request that added li