πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.compilers
Article #12

Re: the death of optimization compiler

#12
From: Anton Antimo
Date: Thu, 19 Nov 2026 14:48
61 lines
3365 bytes
Anton Antimo <anton@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.
Technical Details
Message-ID: <26-11-001@comp.compilers>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end
References: <26-10-010@comp.compilers>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end
From: Anton Antimo <anton@safunu.org>
Newsgroups: comp.compilers
Subject: Re: the death of optimization compiler
Date: Thu, 19 Nov 2026 11:48:00 -0300
Organization: Compilers Central
Sender: johnl%iecc.com
Approved: comp.compilers@iecc.com
Message-ID: <26-11-001@comp.compilers>
References: <26-10-010@comp.compilers>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
	logging-data="48574"; mail-complaints-to="abuse@iecc.com"
Keywords: optimize
Posted-Date: 20 Nov 2026 12:50:02 EST
X-submission-address: compilers@iecc.com
X-moderator-address: compilers-request@iecc.com
X-FAQ-and-archives: http://compilers.iecc.com