AlexLakatos / computer-puns

A hand-picked selection of the worst computer puns, really cringe-worthy stuff.
https://puns.dev
GNU General Public License v3.0
100 stars 58 forks source link

Improve parroty pun #120

Closed hcs64 closed 2 years ago

hcs64 commented 2 years ago

While 7 and 8 differ in parity, they have the same 2's complement parity (odd), while 8 and 9 don't (9 is even). Also 9 is one syllable, like 8.

github-actions[bot] commented 2 years ago

Thank you for submitting a PR! Here's a pun, while you wait for me to review it.

Q: Why did the developer go broke? A: They used up all their cache!

Or you can ping me on Twitter, that tends to speed up this process!

AlexLakatos commented 2 years ago

I didn't understand a single thing from that, but I'll allow it. Thanks for the PR!

hcs64 commented 2 years ago

Thanks! In the interest of maximum cringe I'll explain the joke: Parity is whether a number is even or odd, so 8 has even parity and 7 or 9 have odd parity. But more often we talk about the parity of the binary representation of data, the parity of the number of 1s in the binary (aka the population count). This is often used to detect a transmission error: if a single bit goes from 0 to 1 (or 1 to 0), the parity of the whole message changes, this is the "parity error" of the pun. 8 is 1000 in binary, it has one 1, so odd parity in this sense; 9 is 1001, two 1s, so it's even parity, and it could plausibly have been a single bit flip from 1000. (7 is 111 in binary, three 1s, so it also has odd parity.)

AlexLakatos commented 2 years ago

Thanks for explaining that!