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
Show parent comment
4
u/reality_boy 18h ago
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.