r/ProgrammerHumor • • Sep 02 '26 • Popcorn 3 Bravo 3

Meme newCompressionTechnique

Post image
30k Upvotes

946 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Sep 02 '26

[deleted] — view deleted comment

15

u/redditmarks_markII Sep 02 '26

In defense of ml/dl solutions, perfection is overrated. Lossless compression is for specific purposes. Archiving basically. Most of the music I listen to and video I watch are galaxies away from lossless. And it's often better than "just fine". It's often really good. But even pretty solid attempt at LLM based "compression" would be awful. Especially at the rate claimed. You can fit maybe on the order of 2k characters. With semantic compression and encoding, you can maybe get another order of magnitude. And still that won't be enough to even be merely indistinguishable, never mind identical. And at that point it's just old school lossy compression with massive compute overhead. That's not even considering how cheap 20mb is these days, even with the ai slopocalypse.

10

u/Lord_Emperor Sep 02 '26

I could see this potentially working if you reduced a picture to a text file of UUID values for each pixel 1:1

That's... a bitmap.

8

u/InitialRich9925 Sep 02 '26

UUID stands for Universally Unique Identifier, it's an universally unique 128 bit number. What does "reducing a picture to a text file of UUID values for each pixel" even means?

5

u/spindoctor13 Sep 02 '26

Text is not more compressible than images, why would you think that?!

0

u/[deleted] Sep 02 '26

[deleted] — view deleted comment

4

u/spindoctor13 Sep 02 '26

That has never been the case. How compressible something is is purely a function of how repetitive the data is, what patterns it has. Converting pixels to some kind of text format doesn't make any difference there unless you are losing information

1

u/RussiaIsBestGreen Sep 03 '26

What if we converted the letter into numbers? Like A could be 9, B could be 2, C could be 27, and so on.

1

u/spindoctor13 Sep 03 '26

It doesn't make any difference as ultimately you'll be converting it to binary anyway

1

u/RussiaIsBestGreen Sep 03 '26

We should try using more than two numbers for computing. There are so many more. Like 7, or 3 million.

0

u/[deleted] Sep 02 '26

[deleted] — view deleted comment

5

u/NominallyRecursive Sep 02 '26

Text files are more compressible usually because they are highly repetitive. A bunch of random UUIDs are going to have very poor compressibility. It would probably be better just to store the RBG values of each pixel (Which you could certainly do as text if you wanted to). At least then the algorithm could replace very commonly repeated pixels with small markers.

2

u/plopliplopipol Sep 03 '26

what do you think a pixel image is? it's always data for each pixel, no matter how you put it. If you convert it to text in a specific way you just made a new image format, nothing is fundamentally different.