2 ms·
Strong typing has hidden value that goes far beyond bug avoidance. It is tremendously important for performance. The only way to get performance out of Python i
by souprock 7y ago
Strong typing has hidden value that goes far beyond bug avoidance. It is tremendously important for performance. The only way to get performance out of Python is to cheat: use a not-quite-Python that violates normal Python behavior, use a hack that lets you insert C code into your Python, or simply call a few heavy-duty library functions to do all the real work.
- stjohnswarts 7y agoNone of my projects in python suffer from performance issues, because it's fast enough. Albeit I just work in the automation space. I do use C for embedded but only because we just don't have the memory capacity for python to run multiple daemons on my IoT projects, it's not because of performance.
- MagnumOpus 7y ago> simply call a few heavy-duty library functions to do all the real work Which is the main advantage of python. Since there are heavily optimised libraries for everything from optimisation to numerical analysis to ML, 99% of people don't need to attempt to be a Real Programmer and write the hand-optimised Fortran/C/assembly code themselves.
- CivBase 7y agoThe type system is only one of many issues responsible for Python's lack of performance. I understand the benefits of static typing. I'm just tired of it often being so overstated.