Re:Yes, Python is Slow, and I Don’t Care
by pg314 on Friday September 08, 2017 @02:45PM
(#15202914)
> Python is insanely fast at data processing and analysis because it has very fast libraries.
It doesn't have fast libraries for everything. E.g. for the use case I brought up, it doesn't (or at least none that I could find at the time). Not all data are homogenous arrays that fit in numpy.
And are those libraries written in Python? Or in C because Python is too slow?
If you take your reasoning, any language that can bind to C (which is pretty much any language) is as fast as C. That is not very helpful when comparing the speed of languages. A slower language will force you to drop into C sooner than a faster one.
> As a matter of fact, don't know if you've heard, but data processing it kind of like.. Python's thing...
Things like audio and video codecs, or crypto code aren't written in Python.
It doesn't have fast libraries for everything. E.g. for the use case I brought up, it doesn't (or at least none that I could find at the time). Not all data are homogenous arrays that fit in numpy.
And are those libraries written in Python? Or in C because Python is too slow?
If you take your reasoning, any language that can bind to C (which is pretty much any language) is as fast as C. That is not very helpful when comparing the speed of languages. A slower language will force you to drop into C sooner than a faster one.
> As a matter of fact, don't know if you've heard, but data processing it kind of like.. Python's thing...
Things like audio and video codecs, or crypto code aren't written in Python.