r/programmingmemes • • 6d ago

C++ VS python

Post image
754 Upvotes

37 comments sorted by

View all comments

7

u/overclockedslinky 6d ago

pretty accurate: python just uses things made by c++

better analogy would've been c

1

u/My92thAccount 2d ago

That's the whole point of Python anyway.
Just let the C++ guys do all the crazy optimizations.
And then just leverage the incredible Python syntax to code whatever sorcery you want.

Your C++ for loop may be orders of magnitude faster than your Python one,
but boi aren't you anyday get any faster than Numpy or Pytorch, and you ain't gonna recode that from scratch.