NaN Gates and Flip FLOPS

Channel:suckerpinch · Length:19:07 · Published:2019-04-01 · Views:314841

Watch on YouTube

Summary

Tom Murphy (suckerpinch) presents a deliberately trollish computer architecture built on IEEE-754 floating point, using NaN and infinity to define logic gates. He builds working hardware around the idea.

Why HN recommends it

HN fans hold it up as a favorite among his videos and an example of gloriously bonkers technical art, and cite it in floating-point discussions.

Suckerpinch barely ever releases a video, but when he does they are great. — HN, 2023

Computer architecture & CPUs · Satire & parody

Subtitles (excerpt)

like you I like to touch computers and I've concluded that they're pretty cool but if you look inside a computer you'll see that it's filled up with ones and zeros and I think that this is basically just a hack y1 y0 it's totally arbitrary we could have used anything so I think we can do better I think we can do best and consulting all of the ways to do things well we see mathematics like a candle in the dark calling to us and the foundation of all of mathematics is the real numbers which are given to us on computers via I Triple E 754 standard ie ie the floating-point numbers now the floating-point numbers are just like the real numbers except that they've been enhanced for computers so here in green we see all the positive numbers well not all of them you don't get all of the real numbers in fact you get almost none of the real numbers are represented well but we have several numbers that are positive and each of those also has a negative counterpart including for example negative zero now negative zero has some exciting properties like it's equal to zero which you might call positive zero that's kind of weird also if these other numbers like infinity which are not normally found in the real numbers infinity is what you get if you count really high

On Hacker News

Suckerpinch barely ever releases a video, but when he does they are great. NaN gates and FlipFlops are my favorite: [VIDEO] You can only get good at mathematics by doing, but if there is a channel that helps you get better at math passively it is probably Michael Penns': [LINK] — bakuninsbart, 2023-03
Here's my favorite video of his, where he reinvents computing from scratch while eschewing inelegant 1s and 0s for elegant floating-point values: [VIDEO] — kibwen, 2022-12
Seconded, thirded, and fourthed. My favorite is "NaN Gates and Flip FLOPS", where he dismisses 0 and 1 as being too ugly to be the foundation of all computation and reinvents computing via the beauty of rational numbers, which is to say, the horror of IEEE754 floating point (along with a working hardware implementation!): [VIDEO] — kibwen, 2021-04
And the operators +, -, *, and / lack some of the properties of addition, subtraction, multiplication, and division. Tom7 has a good video about this: [VIDEO] — MathMonkeyMan, 2025-06
Not sure how well it fits what you're looking for, but if you're not already aware of tom7/suckerpinch, you might get a kick out of some of his videos -- e.g. [VIDEO] — retsibsi, 2023-12

Related videos