@cm0002@lemmy.world to Programmer Humor@programming.dev • 24 hours agoTell me the truth ...piefed.jeena.netimagemessage-square92fedilinkarrow-up1897
arrow-up1897imageTell me the truth ...piefed.jeena.net@cm0002@lemmy.world to Programmer Humor@programming.dev • 24 hours agomessage-square92fedilink
minus-square@laranis@lemmy.ziplinkfedilink86•edit-222 hours ago01111111 = true 11111111 = negative true = false
minus-square@laranis@lemmy.ziplinkfedilink3•20 hours agoCommon misconception… Unsigned booleans (ubool) are always 16-bits.
minus-square@ricecake@sh.itjust.workslinkfedilink10•17 hours agoCould also store our bools as floats. 00111111100000000000000000000000 is true and 10111111100000000000000000000000 is negative true. Has the fun twist that true & false is true and true | false is false .
minus-squareOpenStarslinkfedilinkEnglish6•20 hours agoWhy do alternative facts always gotta show up uninvited to the party? 🥳
minus-square@pocker_machine@lemmy.worldlinkfedilink4•19 hours agoSo all this time true was actually false and false was actually true ?
minus-square@laranis@lemmy.ziplinkfedilink3•19 hours agoDepends on if you are on a big endian or little endian architecture.
minus-square@pocker_machine@lemmy.worldlinkfedilink4•18 hours agoCome on man, I’m not gonna talk about my endian publicly
01111111 = true
11111111 = negative true = false
00001111 = maybe
10101010 = I don’t know
00000001 00000000 00001111 10101010
100001111 = maybe not
Schrödingers Boolean
What if it’s an unsigned boolean?
Cthulhu shows up.
Common misconception… Unsigned booleans (ubool) are always 16-bits.
Super true.
Could also store our bools as floats.
00111111100000000000000000000000
is true and10111111100000000000000000000000
is negative true.Has the fun twist that true & false is true and true | false is false .
Why do alternative facts always gotta show up uninvited to the party? 🥳
So all this time true was actually false and false was actually true ?
Depends on if you are on a big endian or little endian architecture.
Come on man, I’m not gonna talk about my endian publicly