C++, Complexity, and Compiler Bugs
azeemba.com
azeemba.com
Specifically,
- incompatibility with C is just stupid
- agreeing with sibling comment, references were a mistake
- the complexity has really gotten out of hand.
I feel exactly like the author. I get less comfortable with C++ year after year, despite writing it all day. I feel like a race car driver who was once confident but has now gotten into too many big crashes.
I'm re-entering c++, I wonder, can we just use a small subset of it and get the job done? it seems a core subset can get a lot done without all the complexities from c++
1. rule of zero
2. smart pointers
3. containers
4. simple class
etc.
Basically, something between c and c++, e.g. c+, that's more powerful and safer than C, but much less complex than the whole c++2 cents from gamedev:
1. Vendor lock in on platforms is still there and is not going anywhere.
2. Existing code. Every successful AAA project / game engine has a mountain of code that is already there. Often with even bigger mountain of data that no one really wants to redo. It also often depends on multiple middleware or open source packages that already work and are hard to replace.
There is no rational reason to keep learning historical accidents why things are like they are in C++ but see points 1 and 2 above.
> I am hoping there can be a cleaner successor language that lets you easily use C++ code when you need to but also allows you to ignore the C++ complexity when you aren’t touching the C++ code directly.
I do not understand how left hand of author wants to run C++ code with all of the data going in and right hand does not want to touch it. It does not work like this. At least in gamedev. End of rant.