r/learnprogramming • • 5d ago

Why is C++ better than Python?

Hello! I am new to programming. Im in college and we use Python for my classes right now.

I hear people make a lot of jokes about how C++ is more powerful than Python, and should be used instead. But why?

Feel free to give me any tips as well, on things that helped you be a better programmer, or just any insight you may have! Thanks so much

67 Upvotes

183 comments sorted by

View all comments

Show parent comment

2

u/moratnz 5d ago

Given the amount of speculative execution, memory caching etc., that goes on in modern CPUs, no languages are 'low level' in the sense that people generally mean. Even good old C is numerous abstraction layers away from what the actual hardware is doing.

1

u/CowBoyDanIndie 5d ago

Ya, no modern high power cpu runs its instructions set natively, they are all emulated by microcode.