[pypy-dev] Python FFI

Maciej Fijalkowski fijall at gmail.com
Tue May 15 18:31:12 CEST 2012


>
>
> However, CPython doesn't have a JIT compiler, and that's one of the biggest
> drawbacks for (something like) ctypes. There's a reason we compile real
> code in Cython, not just a thin glue layer. So, if you want something
> that's usable outside of PyPy, you will have to come up with something
> that's useful in CPython as well.
>
>
Completely ignoring your other issues for now. No, this is not the major
drawback for ctypes for me. I know people who would happily use something
that works nicely on pypy and cpython without performance considerations.
The problem is that ctypes is at the wrong level - you cannot do some
things and that's where cython helps. Ctypes is also crazy and inconsistent
and hard to use, this makes it even more problematic.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20120515/0bb2be5e/attachment.html>


More information about the pypy-dev mailing list