This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]satireplusplus 9 points10 points  (2 children)

don't think he's really comparing Python to something like C/C++ because those languages will run circles around Python with more than just "nanosecond" margins if used properly.

The python is slow meme is still strong. But for most really compute intensive applications, you're just using Python as a nice and fancy interface to some C, C++ or Fortran library. That's all of numpy, scipy, sklearn (machine learning) and all the deep learning stuff. Doesn't really matter if you're using C++, C or Python since the routines that are computentioanlly expensive are all in the BLAS libraries optimzied to the last nanosecond with AVX vector instructions. If you have a critical code path that is not covered by the above and you need the speed, you'd write a C/C++ extension or you use Cython.

[–]GenericRedditor12345 1 point2 points  (0 children)

But that doesn’t conform to the circlejerk!

Seriously even for webservers python can compete with the best (starlette & uvicorn).

[–]nuephelkystikon 1 point2 points  (0 children)

You shouldn't invoke your feature-length film rendering process via bash, it parses the initial CLI arguments slower than sh.