Well, CPyExt is a pure reimplementation of the API needed by the Python C extensions, and IronClad (last time I looked) reuses a lot of the actual CPython implementation. My thinking is that a pure reimplementation would be easier to port, reuse and maintain.

From reading up on the pypy discussions about this code it doesn't seem like it's ready to support NumPy yet, but they seem hopeful about it. And from a quick glance at the code it is of course written in RPython. I think for our purposes we would reuse the ideas but rewrite a lot in C, linking with JNI.

The source code for CPyExt is in this pypy branch by the way: http://codespeak.net/svn/pypy/branch/cpython-extension


On Sat, Apr 10, 2010 at 9:21 PM, Philip Jenvey <pjenvey@underboss.org> wrote:

On Apr 10, 2010, at 3:52 AM, Tobias Ivarsson wrote:

> Have you guys seen this: http://morepypy.blogspot.com/2010/04/using-cpython-extension-modules-with.html ?
> I wonder if it could be integrated with Jython to enable Jython to use CPython extension modules such as PIL and NumPy.
> From an initial look, it seems to be an easier approach for us to integrate than IronClad would be, although I need to look deeper before I could tell for sure.

It's very interesting but I haven't looked at it at all yet, why would it easier for us to adopt?

Philip Jenvey