All of the fancy python stuff requires a bucketload of dynamic memory. C was carefully optimized so you have absolute control over all memory. C++ tries to keep that concept and sacrifices some to get there. Memory use is the big line that separates C/C++ from the more modern languages.
“Modern” is doing a lot of heavy lifting. And managing memory isn’t that difficult with good habits. There is a reason so many core functions supporting just about everything are written in C.
I mean yeah of course but your original comment doesn't make much sense, if the original code is full of dynamic allocation it generally would be a pain to write in Plain C
View all comments
4
u/intoxicuss 18h ago
Whenever I see Python scripts, I realize how easy it would have been to do it properly in C.