Unofficial Hacker News companion — get notified on comment replies, and more.

If It Floats (opens external site)

61 points by surprisetalk 2 days ago | blog.coredump.cx | 4 comments on HN | Vote on HN (opens Hacker News) |

Comments (4)

  1. Reminds me the "Wat" lightning talk I saw a few years ago:

    https://www.destroyallsoftware.com/talks/wat

  2. Glorious and very well written.
  3. 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...

  4. More about language quirks around NaN except for the first few.