Re:The world could run on older hardware if software optimiz...
by sorcerer-mar on Friday May 16, 2025 @08:51AM
(#44004851)
> You could go to assembly, but let's be honest - who can write better assembly than a C++ compiler?
In other words, yes you can eek out more performance at lower levels. Then again at the silicon level. No, it's not worth it in 99.9999% of scenarios (because there are tradeoffs).
No, actually, C++ is pretty much as low as you can go.
Well, I mean, you can go lower but you're not going to get performance benefits. You could go down to C. But C is going to be more of the same or, more likely, slower. You're going to be swapping Templates for things like void *.
You could go to assembly, but let's be honest - who can write better assembly than a C++ compiler?