2 ms·
Just try to do anything that involves any kind of heavy calculation with Python and tell me it has "decent performance". If you write such code in pure python i
by mlindner 5y ago
Just try to do anything that involves any kind of heavy calculation with Python and tell me it has "decent performance". If you write such code in pure python it can easily be up to 1000x slower than a compiled language or using dedicated libraries that link C/C++/Rust libraries to Python. This is why you need to immediately reach for numpy and similar libraries that aren't part of the standard library.
- p7g 5y agoThis discussion is about the standard library, not the language runtime. Decent performance here is meant relative to the performance of the language. In this case it could mean algorithmic complexity, for example.
- wheelerof4te 5y agoSoftware does not always require "heavy calculations". That is the case in majority of applications today. You would be surprised as to what can be made in Python using stdlib only. Ironically, Python makes the best desktop calculator. Go figure.