The whole point of C++ is to graft Object Oriented Programming into C like some Frankenstein’s monster because OOP was the big hype.
C++ being performant is mostly a side effect of it being based on a language created when programs were still punched into paper cards.
That was the point 20 years ago. These days it is pivoting to compile time functional programming
What does that mean ?
If you have a constant expression like
1 + 2in your code you can evaluate it at compile time once and avoid computing it at runtime. You can do that with control flow and much more complex language constructs in C++. If you want to know more about that look into C++ template meta programming, constexpr, and constval.Or don’t look into those things if you wish to remain sane
Templates are cool as fuck tho… For like 5 minutes until you go insane
I get that the designers wanted to have compile time static replacement but this was not the way to do it.
It’s kind of sad that so many big studios have abandoned their proprietary engines to adopt unreal engine 5. What’s going to happen when Epic starts to turn the screws because they feel like they aren’t making enough money? All these big studios won’t have any staff left that knows how to build graphical engines. Honestly, at least it would make sense if they have up on their engines and started using Godot. At least they wouldn’t be bound to Epic’s bullshit.
Anon is my C language programming college professor. He was also a linux evangelist, and got me to start daily driving/dualbooting linux.
Go ahead, write your 3D engine in Python. I dare you.
I wanted to write software renderer in turtle as a joke sometime ago but I only did a spinning cube https://files.catbox.moe/1mjm2g.py
The point of C++ isn’t optimization, rather it is that one only pays for what one uses. Experience in C++ leads to using only the features of C++ that are appropriate and conscientiously eschewing the rest.
Fuck C++. IMO the Microsoft Windows of the programming languages.
This is why we should only use Python. :)
So great for programming, with no downsides. Why hasn’t anyone thought of this before?
I’m a genius, i know.






