If It Floats (blog.coredump.cx)
45 points by surprisetalk a day ago
arcastroe 20 hours ago
Reminds me the "Wat" lightning talk I saw a few years ago:
kens 17 minutes ago
If you want to know why some of these behaviors exist, see Kahan's "Lecture Notes on the Status of IEEE Standard 754 for Binary Floating-Point Arithmetic".
In particular, the reason that NaN != NaN but infinity == infinity is so there is a way to detect NaN in languages that lack isNaN().
https://web.archive.org/web/20260316121248/https://people.ee...
dmitrygr 20 hours ago
Glorious and very well written.