I've never had the issue of when to use python vs c++. Basically you are tradiding developing time and speed for performance.
Creating a fast program in Python is much harder because you don't have control. C++ instead let's you be as close to the metal and even compute stuff at compile time.
A better meme would be contrasting C++ and Rust or Python and another language with the same use.
Yeah normally you would use python (or something similar) for the main application, then any resource intense subroutine you write in C++ (or something similar) to eek out the performance.
5
u/carloom_ 2d ago
I've never had the issue of when to use python vs c++. Basically you are tradiding developing time and speed for performance.
Creating a fast program in Python is much harder because you don't have control. C++ instead let's you be as close to the metal and even compute stuff at compile time.
A better meme would be contrasting C++ and Rust or Python and another language with the same use.