192
you are viewing a single comment's thread
view the rest of the comments
[-] virku@lemmy.world 9 points 2 weeks ago

Store 8 bits in the same byte then ๐Ÿ‘Œ

[-] sxan@midwest.social 3 points 2 weeks ago

Wrong direction!

Store only bits using word-length ints (32 bits in most modern architectures), and program everything to do math using arrays of 32 int-bits to numbers!

[-] virku@lemmy.world 4 points 2 weeks ago

Oh man! That took me down memory lane!

I once had to reverse engineer a database to make an invoice integration. They had an int named flags. It contained all status booleans in the entire system. Took me a while to figure that one out.

[-] sxan@midwest.social 3 points 2 weeks ago

We've all been there, friend. The bit arrays can't hurt you now.

this post was submitted on 15 May 2025
192 points (96.6% liked)

Programmer Humor

35875 readers
1325 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS