[Numpy-discussion] mtrand and cffi

Matti Picus matti.picus at gmail.com
Fri Apr 18 09:55:34 EDT 2014


Hi. I am part of the pypy team. I recently rewrote mtrand.pyx as
mtrand.py that uses cffi, in order to use it with pypy. mtrand.pyx uses
cython to compile a python extension module, where my approach was to
compile the randomkit code as a shared object, and to use that directly
via cffi.

If this approach interests anyone, the code is on the cffi-random fork
of numpy at bitbucket.org/pypy/numpy, which is a partial implementation
of pure-python numpy for pypy.

Comments are welcome

Matti Picus



More information about the NumPy-Discussion mailing list