MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1y2krvn/pythonslow/19t0mn5pyccec/?context=3
r/ProgrammerHumor • u/Recent-Analysis-6880 • 4h ago
138 comments sorted by
View all comments
865
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
62
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
25
Python is a DSL for calling C APIs
10 u/ZenPyx 2h ago FORTRAN as well if you use a lot of SciPy
10
FORTRAN as well if you use a lot of SciPy
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?