Top all-time · #2746
tavianator.com
Personal blog · tavianator.comsystemsprogramming
tavianator.com is a personal blog at tavianator.com about systems and programming. Since 2011, 27 different Hacker News readers have linked it 37 times, most often “Proving that 1 plus 1 equals 10 in Rust”. It is still writing: the last post was on 2025-08-08, and you can follow it by feed.
Most-linked posts?
- Proving that 1 plus 1 equals 10 in Rust3 people · 3 mentions · first linked 2020-10-20
- Irregular Expressions3 people · 3 mentions · first linked 2023-03-08
- /2011/ray_box.html2 people · 3 mentions · first linked 2021-08-22
- You could have invented futexes2 people · 2 mentions · first linked 2023-04-26
- Cracking DHCE (Diffie-Hellman color exchange)2 people · 2 mentions · first linked 2018-01-17
- The Alder Lake anomaly, explained2 people · 2 mentions · first linked 2025-01-04
- The Alder Lake SHLX Anomaly2 people · 2 mentions · first linked 2025-01-02
What Hacker News says?
And in other cases you really do want the infinities. For example fast ray-AABB tests like https://tavianator.com/fast-branchless-raybounding-box-inter...
Comment linking /fast-branchless-raybounding-box-intersections/
on “1/0 = 0”Submitted Bug hunting in Btrfs as a story · 243 points
HN discussion> Maybe RISC-V? RISC-V is specified as a RISC (and allows very space-/power-efficient lower-end designs with the classic RISC design), but designed with macro-op fusion in mind, which gets you closer to a CISC decoder and EUs. It's a nice place to be in tooling-wise, but it seems too early to say definitively what extensions will need to be added to get 12900K/9950X/M4 -tier performance-per-core. In either case thou…
Comment linking /2025/shlx.html
on “I am giving up on Intel and have bought an AMD Ryzen 9950X3D”Submitted The Alder Lake SHLX Anomaly as a story · 234 points
HN discussionWrote up the presumed explanation here: https://tavianator.com/2025/shlxplained.html
Comment linking /2025/shlxplained.html
on “The Alder Lake SHLX Anomaly”Submitted Parallel ./configure as a story · 219 points
HN discussionThere are algorithms that behave correctly but require intermediate Inf or NaN to work. If I recall there is one related to finding bounding box intersections in ray tracing. I know when I introduce such code into a codebase I put a large "DO NOT CHANGE THIS..." style comment with an explanation so some enterprising programmer doesn't put some if statements in to remove what they think is an error, when it is not. I…
Comment linking /2011/ray_box.html
on “Optimizations Enabled by -ffast-Math”Submitted Rounding Percentages as a story · 47 points
HN discussionAnd there are algorithms that rely on this, like this[1] branchless axis-aligned bounding box intersection test. It exploits the division by zero sign logic of IEEE-754, so that the min/max operations used also handles the edge cases where the ray is parallel to an axis. [1]: https://tavianator.com/2011/ray_box.html
Comment linking /2011/ray_box.html
on “One does not simply calculate the absolute value”Submitted Irregular Expressions as a story · 10 points
HN discussionIn IEEE 754, division by zero is well defined[1], and some algorithms rely on this[2]. Not sure how it relates to frame lag, some less-than-ideally-implemented iterative routine? [1]: https://en.wikipedia.org/wiki/IEEE_754#Infinities [2]: https://tavianator.com/2011/ray_box.html
Comment linking /2011/ray_box.html
on “Why should we not divide by zero?”Submitted Sneaky Git Commits as a story · 8 points
HN discussionSubmitted The Alder Lake anomaly, explained as a story · 8 points
HN discussionSubmitted BFS – “find” replacement which does breadth-first search (2016) as a story · 5 points
HN discussionSubmitted Cracking DHCE (Diffie-Hellman color exchange) as a story · 4 points
HN discussionSubmitted Long Division as a story · 3 points
HN discussionSubmitted Cracking DHCE (Diffie-Hellman color exchange) (2018) as a story · 3 points
HN discussionSubmitted Porting k-d forests to Rust as a story · 3 points
HN discussionSubmitted Spawn() of Satan as a story · 3 points
HN discussionSubmitted Cracking DHCE (Diffie-Hellman color exchange) as a story · 3 points
HN discussionSubmitted Remote reboots with encrypted disks on Arch Linux as a story · 2 points
HN discussionSubmitted Spawn() of Satan as a story · 2 points
HN discussionSubmitted Proving that 1 plus 1 equals 10 in Rust as a story · 2 points
HN discussionSubmitted Java autoboxing performance as a story · 2 points
HN discussionSubmitted Solving Cubic Polynomials as a story · 2 points
HN discussionSubmitted You could have invented futexes as a story · 1 points
HN discussionSubmitted Bfs 3.0: The Fastest Find Yet as a story · 1 points
HN discussionSubmitted You could have invented futexes as a story · 1 points
HN discussionSubmitted Irregular Expressions as a story · 1 points
HN discussionSubmitted Irregular expressions (lookahead/lookbehind without backtracking) as a story · 1 points
HN discussion