Hi there,

So if I understand the direction of this discussion correctly, it is
suggested that to interface PyPy with Cython in a non-hackish way the
best strategy might be to modify Cython to generate Python code. This
way, there's no need to expose all sorts of PyPy internals on a C API
level, and Cython generated code could benefit from the JIT.

This would essentially solve the problem for any code in Cython that
didn't talk to any C APIs.

But Cython-based code does talk to C APIs, so there is a problem.
Python code in PyPy needs to be able to interface with C APIs first in
order to generate the right stuff from Cython.

ctypes is not considered to be a decent way to integrate PyPy with C
APIs. A decent foreign function interface for PyPy would be needed
first, or alternatively one that's specifically written for the
concerns of Cython.

Did I get this right?

So what would be required to create a decent FFI this nature? What
would make it decent? How could Cython's experience interfacing with C
help to design this?

Regards,

Martijn
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to