trivia: !!x|0 ^ !!y|0 is how you write logical xor in JS :P
-
-
-
this is awesome, is there a proof of this somewhere? from (a || b) && (a !== b)
1 reply 0 retweets 0 likes -
Replying to @samselikoff @wycats
you can always write out the full truth tables and see that they're the same.
1 reply 0 retweets 1 like -
first thing I did, but was wondering how you came up with it. Wanted to know if there was a derivation from the definition
1 reply 0 retweets 0 likes -
Replying to @samselikoff @wycats
math is equal parts rigor and intuition. Just takes practice.
2 replies 0 retweets 1 like -
fwiw I implemented all 3 here http://jsbin.com/devuleb/1/edit?js,console …
1 reply 0 retweets 0 likes -
Replying to @15lettermax @eaf4 and
Although the bitwise version seems to shake out to regular OR instead of XOR after coercion, or I typo’d :P
2 replies 0 retweets 0 likes -
Replying to @15lettermax @eaf4 and
hrm, splitting it out like this makes it work when it doesn't inline;pic.twitter.com/KO5FWdFnOc
1 reply 0 retweets 0 likes
it works differently when it inlines?!?!
-
-
Replying to @wycats @15lettermax and
indeed it does, order of operations thing I think.
2 replies 0 retweets 0 likes -
Replying to @Runspired @15lettermax and
based on whether it's inlined *in the VM*?
0 replies 0 retweets 0 likes
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.