You can precalculate a lot of stuff, instead of using wonky code generators or wasting runtime and memory calculating it on startup
It is up to your taste if you find a template heavy constxpr C++ code more preferable to preproc heavy pregenerated values C code,
My point is that prebaking stuff is not something that is not doable in C .
Hell duffs device is 2 years older than C++ itself .
The blanket statements that he made claiming C++ as being more "maintainable", "readable", "performant", and having a "smaller binary size", are funny .
Many find OOP ridden, 6 levels of inherence polymorphic C++ code harder to read and maintain than simple procedural C code .
Yes C++ code is able to not to have inherence, polymorphism and etc, but in my personal experience people generally code C++ in this style since it is thought to them that abstraction to oblivion is the way .
Problem with C++ is that it gives you a lot of syntactic sugar that has ability to make a mess of your code, the only thing that C has with a similar potential of code mess up is the preproc and that exists in C++ too though not used as much as in C .
With binary size there is always a trade-off and to just say that C++ has smaller binary sizes is just wrong .
It is even said in the paper he cited that, when you prebake, inline, (whatever you what to call it) stuff in comptime you are sacrificing storage for performance; binary size is a balance and where to balance it entirely depends entirely on the circumstances and the environment .
Again prebaking stuff is not a impossibility in C programmers have been doing it since the 70s .
And last is performance, reading the paper has proved to me again anyone "claiming X is faster than C" is comparing a piece of optimized code in their language to a non-optimized piece of C code .
The paper even has a section comparing his implementation to a "fully optimized C code" and the results basically end up 1-1 .
C++ can't get faster than C, best it can do is to get 1-1 to it .
One thing it can claim is that more "readable" code can get better optimized in some cases compared to C, while that maybe true readability is not a objective universal measure .