Closed hcs64 closed 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!
I didn't understand a single thing from that, but I'll allow it. Thanks for the PR!
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.)
Thanks for explaining that!
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.