On Saturday, 27 December 2014 at 10:54:01 UTC, Russel Winder via Digitalmars-d-learn wrote:
I know much less about R, but the whole Python/NumPy thing works but
only because it is faster and easier than Python alone. NumPy
performance is actually quite poor. I am finding I can write Python + Numba code that hugely outperforms that same algorithm using NumPy.
There will sure be some algorithms where numba/cython would do better (especially if they cannot be easily vectorized), but that's not the point. The thing about numpy is that it provides a unified accepted interface (plus a reasonable set of reasonably fast tools and algorithms) for arrays and buffers for a multitude of scientific libraries (scipy, pytables, h5py, pandas, scikit-*, just to name a few), which then makes it much easier to use them together and write your own ones.

Reply via email to