On Thu, 30 Jun 2016 11:17:14 -0700 (PDT)
Carlos Pita <
carlosj...@gmail.com>
wrote:
>
> If I wrap a C function using Cython/CFFI/SWIG/…, could there somehow be a
> > way to expose the original C function to Numba/PyPy/Pyston/etc. to cut out
> > the wrapper overhead? What about vice-versa: if I have a Python function
> > that’s been JIT-compiled and I pass it to some native code like
> > scipy.optimize.fmin
> > <
https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.fmin.html#scipy.optimize.fmin>,
> > could there be some way for the native code in scipy to call the
> > JIT-compiled function directly without going through tuple
> > packing/unpacking? Can Numba and Pyston benefit from PyPy’s work on CFFI?
> >
>
> But my question is not about calling c from jitted or jitted from c, but
> python from jitted. Specifically, I find the separation between python and
> nopython modes too drastical and loop-lifting is no silver-bullet.
Yes, the current separation is very inflexible (but was easy for us to
develop, which is why it was done like that :-)). One long-term goal is
to make it more flexible, or perhaps obsolete it altogether.
Regards
Antoine.