[Cython] CEP1000: Native dispatch through callables

Stefan Behnel stefan_ml at behnel.de
Fri Apr 13 21:15:22 CEST 2012


Stefan Behnel, 13.04.2012 07:24:
> Dag Sverre Seljebotn, 13.04.2012 00:34:
>> On 04/13/2012 12:11 AM, Dag Sverre Seljebotn wrote:
>> http://wiki.cython.org/enhancements/cep1000
> 
> I'm all for doing something in this direction and have been hinting at it
> on the PyPy mailing list for a while, without reaction so far. I'll trigger
> them again, with a pointer to this discussion and the CEP. PyPy should be
> totally interested in a generic way to do fast calls into wrapped C code in
> general and Cython implemented functions specifically. Their JIT would then
> look at the function at runtime and unwrap it.

I just learned that the support in PyPy would be rather straight forward.
It already supports calling native code with a known signature through
their "rlib/libffi.py" module, so all that remains to be done on their side
is mapping the encoded signature to their own signature configuration.

Stefan


More information about the cython-devel mailing list