Re:Own Constant Folder in C/C++
by almostgotcaught on Saturday June 22, 2024 @08:36AM
(#40758681)
> How is a non-expert in the language supposed to learn tricks/... things like this?
just like everything else in life that's complex: slowly and diligently.
i hate to break it to you - C++ is complex not for fun but because it has to both be modern (support lots of modern syntax/sugar/primitives) and compile to target code for an enormous range of architectures and modern achitectures are horribly complex and varied (x86/arm isn't the only game in town). forgo one of those and it could be a much simpler language but forgo one of those and you're not nearly as compelling.
just like everything else in life that's complex: slowly and diligently.
i hate to break it to you - C++ is complex not for fun but because it has to both be modern (support lots of modern syntax/sugar/primitives) and compile to target code for an enormous range of architectures and modern achitectures are horribly complex and varied (x86/arm isn't the only game in town). forgo one of those and it could be a much simpler language but forgo one of those and you're not nearly as compelling.