[SciPy-Dev] Numba as a dependency for SciPy?

Jaime Fernández del Río jaime.frio at gmail.com
Wed Mar 7 03:40:19 EST 2018


On Wed, Mar 7, 2018 at 9:02 AM Ralf Gommers <ralf.gommers at gmail.com> wrote:

>
>
> On Tue, Mar 6, 2018 at 1:55 PM, Stephan Hoyer <shoyer at gmail.com> wrote:
>
>> Numba does have a mechanism for exporting pre-compiled code:
>> http://numba.pydata.org/numba-doc/dev/user/pycc.html
>>
>> It would be interesting to see if those limitations are flexible enough
>> for SciPy.
>>
>
> I suspect that (a) we're then going to run into more Numba bugs because
> pre-compilation is not well-tested, and (b) we throw away some of the
> advantages of Numba, e.g. we then get back the binary size explosion for
> multiple dtype templating.
>
>
>> On Tue, Mar 6, 2018 at 1:21 PM CJ Carey <perimosocordiae at gmail.com>
>> wrote:
>>
>>> I think adding a required runtime dependency may be overly restrictive,
>>> given scipy's position near(-ish) the base of the scientific computing
>>> pyramid.
>>>
>>> Would it be possible to run numba-optimized code on systems with numba
>>> installed without impacting "vanilla" users?
>>>
>>
> It's worth thinking about. We could put a jit decorator in scipy._lib that
> becomes numba @jit if numba is installed and is do-nothing otherwise.
>

I'll admit I have a "fear of the unknown" mistrust of numba, but reading
through this thread I was thinking of something like this as being
something even I would have no problem with.

Juan Luis Cano, who probably reads this, but who I have just in case CCed
in this e-mail, is the author of https://github.com/poliastro/poliastro, a
numerical library that gave up on Fortran/Cython/C by design and embraced
Numba from the start, would be nice to hear his take on making it a
dependency.

Jaime


>
> Ralf
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at python.org
> https://mail.python.org/mailman/listinfo/scipy-dev
>


-- 
(\__/)
( O.o)
( > <) Este es Conejo. Copia a Conejo en tu firma y ayúdale en sus planes
de dominación mundial.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20180307/2b0786e5/attachment.html>


More information about the SciPy-Dev mailing list