cm0002@lemmy.world to Programmer Humor@programming.dev · 8 days agoTell me the truth ...piefed.jeena.netexternal-linkmessage-square150fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkTell me the truth ...piefed.jeena.netcm0002@lemmy.world to Programmer Humor@programming.dev · 8 days agomessage-square150fedilink
minus-squarelaranis@lemmy.ziplinkfedilinkarrow-up0·edit-28 days ago01111111 = true 11111111 = negative true = false
minus-squareJankatarch@lemmy.worldlinkfedilinkarrow-up0·6 days agonegative true = negative non-zero = non-zero = true.
minus-squarericecake@sh.itjust.workslinkfedilinkarrow-up0·8 days 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-squarepocker_machine@lemmy.worldlinkfedilinkarrow-up0·8 days agoSo all this time true was actually false and false was actually true ?
minus-squarelaranis@lemmy.ziplinkfedilinkarrow-up0·8 days agoDepends on if you are on a big endian or little endian architecture.
minus-squarepocker_machine@lemmy.worldlinkfedilinkarrow-up0·8 days agoCome on man, I’m not gonna talk about my endian publicly
minus-squareOpenStars@piefed.sociallinkfedilinkEnglisharrow-up0·8 days agoWhy do alternative facts always gotta show up uninvited to the party? 🥳
minus-squarelaranis@lemmy.ziplinkfedilinkarrow-up0·8 days agoCommon misconception… Unsigned booleans (ubool) are always 16-bits.
minus-squarecaseyweederman@lemmy.calinkfedilinkarrow-up0·7 days ago0011 1111 = could you repeat the question
01111111 = true
11111111 = negative true = false
negative true = negative non-zero = non-zero = 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 .
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
Why do alternative facts always gotta show up uninvited to the party? 🥳
What if it’s an unsigned boolean?
Cthulhu shows up.
Common misconception… Unsigned booleans (ubool) are always 16-bits.
00001111 = maybe
Schrödingers Boolean
10101010 = I don’t know
0011 1111 = could you repeat the question
100001111 = maybe not
00000001 00000000 00001111 10101010