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.
View all comments
7
u/overclockedslinky 6d ago
pretty accurate: python just uses things made by c++
better analogy would've been c