this post was submitted on 24 Jan 2025
827 points (99.6% liked)
Programmer Humor
20183 readers
1691 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
Compression is lossy.
So when you zip some files and then unzip them, some of the bytes are missing? Really?!
It's only the zeros, so you're not really missing anything.
If nothing is lost, what did you compress away? Decompression is magic, I ain't gotta explain shit
If you want the magic explained, here's a start: https://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Welch
Newer fractional arithmetic encoding can get crazy
https://en.wikipedia.org/wiki/Asymmetric_numeral_systems
you compressed away redundant data, 1111111000000000011111111 -> (1x7)(0x10)(1x8)
Keep your magic ways to yourself, wizard
Some compression is lossy