[Cython] CEP1000: Native dispatch through callables
robertwb at gmail.com
Fri Apr 13 21:26:44 CEST 2012
On Fri, Apr 13, 2012 at 12:15 PM, Stefan Behnel <stefan_ml at behnel.de> wrote:
> 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:
>> 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.
Or looking into borrowing theirs? (We might want more extensibility,
e.g. declaring buffer types and nogil/exception data. I assume ctypes
has a signature declaration format as well, right?)
More information about the cython-devel