1116
Tell me the truth ... (piefed.jeena.net)
(page 3) 34 comments
sorted by: hot top controversial new old
[-] Amberskin@europe.pub 4 points 3 days ago

Pl/1 did it right:

Dcl 1 mybools, 3 bool1 bit(1) unaligned, 3 bool2 bit(1) unaligned, … 3 bool8 bit(1) unaligned;

All eight bools are in the same byte.

[-] Iceblade02@lemmy.world 5 points 3 days ago

...or you can be coding assembler - it's all just bits to me

[-] Treczoks@lemmy.world 6 points 3 days ago

This guy never coded in KEIL C on an 8051 architecture. They actually use bit addressable RAM for booleans. And if you set the compiler to pass function parameters in registers, it uses the carry flag for the first bit or bool type parameter.

[-] kayzeekayzee 5 points 3 days ago

Redundancy is nice in the event of bitflip errors

load more comments (3 replies)
[-] ZeroGravitas@lemm.ee 4 points 3 days ago

7 Shades of Truth

[-] humanspiral@lemmy.ca 2 points 3 days ago

Now store the numbers (array):

0 0 0 1 0 1 1 2

think 8 bytes???

load more comments
view more: ‹ prev next ›
this post was submitted on 15 May 2025
1116 points (100.0% liked)

Programmer Humor

23326 readers
350 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