News for hackers. Stuff that matters.
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)
Re:What XOR is and why it's useful by layer8 on Tuesday February 18, 2025 @04:15PM (#43095211)
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.

Re:What XOR is and why it's useful by polpo on Tuesday February 18, 2025 @04:12PM (#43095186)
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).
Re:What XOR is and why it's useful by lblume on Tuesday February 18, 2025 @03:39PM (#43094787)
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.