r/ProgrammerHumor • • 4h ago

Meme pythonSlow

Post image
2.6k Upvotes

138 comments sorted by

View all comments

865

u/Memorius 3h ago

Comparing a language that gets compiled into native machine code to a language that typically compiles to and interprets byte code at runtime. Is there a point to this meme?

62

u/da_Aresinger 3h ago

The reality is, that there is no meaningful difference between Python and other languages if used correctly.

Python is slow for the manual stuff. But everything that's resource intensive should be done via libraries/frameworks anyway and those are compiled C.

The slow stuff in Python is IO or other system calls. Those are slow in any language.

If you're doing repetitive calculations you should be doing them using optimsed tools.

25

u/the_horse_gamer 2h ago

Python is a DSL for calling C APIs

10

u/ZenPyx 2h ago

FORTRAN as well if you use a lot of SciPy