Re:What XOR is and why it's useful
by greenavocado on Tuesday February 18, 2025 @03:20PM
(#43094536)
Easy way to remember it: Never both together (NBT)
[ Parent
| on HN ]
It’s easier to remember it as a bit inverter, or as boolean “not equal”, IMO.
I might be biased by learning XOR from https://www.chiark.greenend.org.uk/~sgtatham/quasiblog/xor/#..., however.
I use this to remember what it does and also like thinking of XOR as an operation you can apply with a mask to flip bits (the linked article mentions this).
Sounds like NAND.
Re:What XOR is and why it's useful
by skeeter2020 on Tuesday February 18, 2025 @06:01PM
(#43096236)
that would just be "not both"
Re:What XOR is and why it's useful
by smusamashah on Tuesday February 18, 2025 @07:49PM
(#43097148)
Red pill VS Blue pill, that's how I use to memorise it. You must choose one.
Now, it just means 'not equal', 'different', 'not same' etc.