3 ms·
Have gone through the exercise, I know this is false. Not everything can be pushed into numpy, and you can still be left with lots of loops in python.
by _aavaa_ 4y ago
Have gone through the exercise, I know this is false.
Not everything can be pushed into numpy, and you can still be left with lots of loops in python.
- dragonwriter 4y agoThat's what numba [0] is for (can also help with the NumPy stuff in certain cases.) [0] https://numba.pydata.org/ https://numba.pydata.org/
- _aavaa_ 4y agoOh, I'm familiar with numba and while it certainly helps, it has plenty of it's own issues. You don't always get a performance gain and you only find this out at the end of a refactoring. Your code can get less readable if you need to transport data in and out of formats that it's compatible with (looking at you List()). To say nothing of adding yet another long dependancy chain to the language (python 3.11 is still not supported even though work started in Aug of last year). I do wonder if the effort put into making this slow language fast could have been put to better use, such as improving a language with python's ease of use but which was build from the beginning with performance in mind.