News for hackers. Stuff that matters.
Re:C and C++ Prioritize Performance over Correctness by jfengel on Friday August 18, 2023 @04:29PM (#37181660)
With modern CPUs, that kind of hand-tuned assembly gets rarer and rarer. Pipelines and caching and branch prediction make it hard to know what's actually going to be faster. And even when you do know enough about the CPU, you only know that CPU -- sometimes only one model of a CPU.

There's still a niche for it, but it's tiny and it keeps getting tinier.

Re:C and C++ Prioritize Performance over Correctness by izacus on Friday August 18, 2023 @04:31PM (#37181690)
That... really isn't all that true. I find that myth being mostly perpetuated by people who don't do any kind of performance work or have any understanding just how terribly unperformant most code out there is.
Re:C and C++ Prioritize Performance over Correctness by jfengel on Friday August 18, 2023 @05:05PM (#37182088)
That is my observation as a compiler writer.