HN Hall of Fame Weekly email

Beware of Fast-Math

simonbyrne.github.io Essays & writing Essays & articles Software engineering Class of 2025-05 Hall of Fame
Screenshot of simonbyrne.github.io captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 4 calendar years, with breakout response in 2 of them.

submissions
6
submitters
6
observed span
2021–2025
peak thread · 224 comments
319 pts
latest 20+ return · 2025-05-31
319 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

I helped design an API for "algebraic operations" in Rust: <https://github.com/rust-lang/rust/issues/136469>, which are coming along nicely. These operations are 1. Localized, not a function-wide or program-wide flag. 2. Completely safe, -ffast-math includes assumptions such that there are no NaNs, and violating that is undefined behavior. So what do these algebraic operations do? Well, one by itself doesn't do much of anything compared to a regular operation. But a sequence of them is allowed to be transformed…

orlp·319-point thread·

Fun fact: when working on Herbie (http://herbie.uwplse.org), our automated tool for reducing floating-point error by rearranging your mathematical expressions, we found that fast-math often undid Herbie's improvements. In a sense, Herbie and fast-math are opposites: one makes code more accurate (sometimes slower, sometimes faster), while the other makes code faster (sometimes less accurate, sometimes more).

Previous discussion here: https://news.ycombinator.com/item?id=29201473 The injunction "Firstly, GCC should address the FTZ library issue: the bug has been open for 9 years, but is still marked NEW." is out of date, a fix is now in-place in the GCC master branch https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522#c45 (possibly prompted by this article). Well worth a read though.

jjgreen·5-point thread·

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
518

reference only — not used in Hall rules or ranking

Total comments
332

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2021-11-12Beware of fast-mathFirst breakoutsimonbyrne189107
2023-02-13Beware of fast-mathsegfaultbuserr51
2023-07-24Beware of Fast-Mathsamwillis20
2024-05-07Beware of -ffast-math and -Ofastfanf210
2025-05-28Beware of Fast-Maththunderbong20
2025-05-31Beware of Fast-MathHall induction · Best thread · Latest 20+ point returnblobcode319224