3 ms·
I think somewhat related is the RPythonic project (https://code.google.com/p/rpythonic/ https://code.google.com/p/rpythonic/ https://news.ycombinator.com/item?i
by albertzeyer 13y ago
I think somewhat related is the RPythonic project (https://code.google.com/p/rpythonic/ https://code.google.com/p/rpythonic/ https://news.ycombinator.com/item?id=5927769 https://news.ycombinator.com/item?id=5927769). It uses RPython to be able to statically compile Python code to C and that way creates CPython extension modules - so you end up with something similar to Numba.
I'm not sure which approach is better.
Some core PyPy people suggest against using RPython for anything else than what they intended it to use (like writing an interpreter). See:
http://mail.python.org/pipermail/pypy-dev/2013-June/011498.html http://mail.python.org/pipermail/pypy-dev/2013-June/011498.h...
http://mail.python.org/pipermail/pypy-dev/2013-June/011503.html http://mail.python.org/pipermail/pypy-dev/2013-June/011503.h...
- takluyver 13y agoOne area in which Numba probably wins is that it's aware of Numpy arrays as types for the compiled functions. There's a lot of code that handles with Numpy arrays, and Numba integrates nicely with that.
- compilercreator 13y agoNewer versions of PyPy also support a subset of numpy.
- takluyver 13y agoPyPy does, but I don't think that the RPython translation and compilation layer knows about the numpy semantics, so I don't think that helps RPythonic make extension modules.