Anton Antimo <ant…@safunu.org> writes:
> [...] But the quotes here might get the interest of comp.compilers in
> particular because it's been many years now and people might want to
> discuss what has changed, if anything.
Although my original post wasn't particularly on optimizing compilers,
this complement is to point out that Daniel J. Bernstein still maintains
his view from 2015 when he gave the talk titled ``[t]he death of the
optimizing compilers''.
> --8<-------------------------------------------------------->8---
> Daniel J. Bernstein in 2015:
>
> Wikipedia: --- ``By the late 1990s for even performance sensitive
> code, optimizing compilers exceeded the performance of human
> experts.''
>
> Bernstein: --- ``The experts disagree, and hold the speed records.''
>
> Mike Pall, LuaJIT author in 2011:
>
> --- ``If you write an interpreter, [...] [t]here’s just no way you
> can reasonably expect even the most advanced C compilers to [optimize
> it] on your behalf.''
>
> Source: ``The death of optimizing compilers'', Daniel J. Bernstein,
> University of Illinois at Chicago, Technische Universiteit Eindhoven,
> lecture from April 16th, 2015.
> --8<-------------------------------------------------------->8---
And in August, 2024, he blogged:
--8<-------------------------------------------------------->8---
I'm putting "optimizations" in quotes because compiler "optimizations"
are generally nowhere near the performance that competent programmers
can achieve. As a cryptographic example, benchmarks across
[many CPUs](https://bench.cr.yp.to/impl-kem/kyber768.html)
show that the avx2 implementation of kyber768 is about 4 times faster
than portable code compiled with an "optimizing" compiler. There are
[many more examples](https://bench.cr.yp.to/)
like this.
Source: http://blog.cr.yp.to/20240803-clang.html
--8<-------------------------------------------------------->8---
He also quoted his 2015-talk:
--8<-------------------------------------------------------->8---
The actual speedup produced by compilers is smaller, and shrinking, as
explained in my talk "The death of optimizing compilers" in 2015.
Source: http://blog.cr.yp.to/20240803-clang.html
--8<-------------------------------------------------------->8---
The whole discussion is all very interesting.