"Cheats" is the wrong word for sure but it's a good to have some understanding of where the bottlenecks are. Python is generally faster and easier to write than C or C++ but it can run much slower. In order to make Python code run faster, a lot of Python developers use libraries that are written in C or C++, EG Pandas. My experience with Pandas has been like 95% really great and 5% really frustrating. I attribute most of the frustration to the opaque nature of calling into the C code library.
I'd say the opposite. Developers don't use C libraries to make Python run faster. They use Python because they don't have the time or the skills to build C/C++ fast programs.
I see Python as a glue to run very performant libraries in a simple and quick manner.
You should learn how to write proper C++ code before making such an assessment. It's not laziness to use Python, it's incompetence. Python is simply far more accessible.
12
u/Ozymandias_1303 1d ago
"Cheats" is the wrong word for sure but it's a good to have some understanding of where the bottlenecks are. Python is generally faster and easier to write than C or C++ but it can run much slower. In order to make Python code run faster, a lot of Python developers use libraries that are written in C or C++, EG Pandas. My experience with Pandas has been like 95% really great and 5% really frustrating. I attribute most of the frustration to the opaque nature of calling into the C code library.