this post was submitted on 15 May 2025
1148 points (98.6% liked)
Programmer Humor
23417 readers
1699 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Wrong again. It depends on the CPU. They can absolutely read a single byte and they will do if you're reading from non-idempotent memory.
If you're reading from idempotent memory they won't read a byte or a word. They'll likely read a whole cache line (usually 64 bytes).
Where?
No they won't because it isn't faster. The CPU will read the whole cache line that contains the byte.
Well, I would but no manual says that because it's wrong!
The fuck are you talking about, kiddo? Read the fucking docs!
What docs? A bool is one byte. Get over it. Find me one normal compiler/architecture in C, C++, Go, Rust, Zig, etc. where it is not. Go on.