wangtongada / gmpy

Automatically exported from code.google.com/p/gmpy
GNU Lesser General Public License v3.0
0 stars 0 forks source link

PyPy support #40

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PyPy 1.3 has (alpha) support for CPython extension modules. It would be nice if 
gmpy ran in PyPy.

Original issue reported on code.google.com by fredrik....@gmail.com on 26 Jun 2010 at 12:45

GoogleCodeExporter commented 8 years ago
I read that in the announcement, too. I will give it a try.

Original comment by casevh on 27 Jun 2010 at 2:37

GoogleCodeExporter commented 8 years ago
As a test, I wrote a very small RPython module to access a simple function in 
the mpfr library. It was faster, but the translation (compile) step took a long 
time and there doesn't appear to be a way to develop an RPython module without 
including it directly into PyPy. This would probably cause licensing issues, 
too. The cpyext (sp?) approach won't work at all unless I remove many of the 
optimizations I've added and it supposedly adds quite a bit of overhead.

Original comment by casevh on 11 Mar 2011 at 3:24

GoogleCodeExporter commented 8 years ago
Closing. Not practical at the moment.

Original comment by casevh on 17 Jul 2011 at 6:26

GoogleCodeExporter commented 8 years ago
How hard would it be to use CFFI?  That would enable PyPy integration, as an 
alternative to using the CPython support of PyPy.

Original comment by bjmg...@gmail.com on 20 Aug 2013 at 3:18

GoogleCodeExporter commented 8 years ago
Someone has started a CFFI wrapper. See 
https://code.google.com/p/gmpy/issues/detail?id=60&can=1

Original comment by casevh on 4 Nov 2013 at 3:40