cm0002@lemmy.world to Programmer Humor@programming.dev · před 11 měsíciTell me the truth ...piefed.jeena.netimagemessage-square168linkfedilinkarrow-up11.19Karrow-down117
arrow-up11.17Karrow-down1imageTell me the truth ...piefed.jeena.netcm0002@lemmy.world to Programmer Humor@programming.dev · před 11 měsícimessage-square168linkfedilink
minus-squarelaranis@lemmy.ziplinkfedilinkarrow-up95·před 11 měsíci01111111 = true 11111111 = negative true = false
minus-squarecaseyweederman@lemmy.calinkfedilinkarrow-up4·před 11 měsíci0011 1111 = could you repeat the question
minus-squareassa123@lemmy.worldlinkfedilinkarrow-up2·před 11 měsíci00000001 00000000 00001111 10101010
minus-squareVonReposti@feddit.dklinkfedilinkarrow-up34·před 11 měsíciWhat if it’s an unsigned boolean?
minus-squarelaranis@lemmy.ziplinkfedilinkarrow-up3·před 11 měsíciCommon misconception… Unsigned booleans (ubool) are always 16-bits.
minus-squareCosmicTurtle0 [he/him]@lemmy.dbzer0.comlinkfedilinkEnglisharrow-up1·před 11 měsíciSuper true.
minus-squarericecake@sh.itjust.workslinkfedilinkarrow-up13·před 11 měsíciCould 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-squareOpenStars@piefed.sociallinkfedilinkEnglisharrow-up7·před 11 měsíciWhy do alternative facts always gotta show up uninvited to the party? 🥳
minus-squarepocker_machine@lemmy.worldlinkfedilinkarrow-up4·před 11 měsíciSo all this time true was actually false and false was actually true ?
minus-squarelaranis@lemmy.ziplinkfedilinkarrow-up3·před 11 měsíciDepends on if you are on a big endian or little endian architecture.
minus-squarepocker_machine@lemmy.worldlinkfedilinkarrow-up7·před 11 měsíciCome on man, I’m not gonna talk about my endian publicly
minus-squareJankatarch@lemmy.worldlinkfedilinkarrow-up2·před 11 měsícinegative true = negative non-zero = non-zero = true.
01111111 = true
11111111 = negative true = false
00001111 = maybe
10101010 = I don’t know
100001111 = maybe not
0011 1111 = could you repeat the question
00000001 00000000 00001111 10101010
Schrödingers Boolean
Is this quantum computing? 😜
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.
00111111100000000000000000000000is true and10111111100000000000000000000000is 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
negative true = negative non-zero = non-zero = true.