this post was submitted on 15 May 2025
0 points (NaN% liked)

Programmer Humor

24628 readers
247 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 0 points 1 month ago (1 children)

I set all 8 bits to 1 because I want it to be really true.

[–] [email protected] 0 points 1 month ago* (last edited 1 month ago) (4 children)

01111111 = true

11111111 = negative true = false

[–] [email protected] 0 points 1 month ago

Could 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 .

[–] [email protected] 0 points 1 month ago (1 children)

So all this time true was actually false and false was actually true ?

[–] [email protected] 0 points 1 month ago (1 children)

Depends on if you are on a big endian or little endian architecture.

[–] [email protected] 0 points 1 month ago

Come on man, I’m not gonna talk about my endian publicly

[–] [email protected] 0 points 1 month ago (2 children)
[–] [email protected] 0 points 1 month ago (1 children)
[–] [email protected] 0 points 1 month ago

0011 1111 = could you repeat the question

[–] [email protected] 0 points 1 month ago

Schrödingers Boolean

[–] [email protected] 0 points 1 month ago

Why do alternative facts always gotta show up uninvited to the party? 🥳