News for hackers. Stuff that matters.
Re:The Three Ways of XOR by StringyBob on Sunday February 12, 2017 @05:50PM (#13631562)
Another way to look at XOR - it's an adder (the sum, without the carry)
Re:The Three Ways of XOR by Sniffnoy on Sunday February 12, 2017 @06:20PM (#13631780)
Yeah, surprised this wasn't mentioned; XOR as addition mod 2 (note that they're just talking about XOR here, not bitwise XOR) comes up way more often than it being the most complex binary boolean operation.
Re:The Three Ways of XOR by bogomipz on Monday February 13, 2017 @09:34AM (#13635449)
The post states at the beginning of the 6th paragraph:

"Some extra treats: XOR can be considered an imparity function. When the number of inputs is even, it outputs zero, while when it is odd, it outputs one. It is also the sum part of an adder, that is, without the carry part. "