I came up with a genius idea

I came up with a genius idea

>say you want to compress a file
>the file contains 1's and 0's
>replace all the 1's with 0
>delete all the 0's with the exception of the first
>now you have a file with 1 byte

Why this wasn't implemented yet?

Because that would corrupt the file.

>inb4 header is 4Gb size

>4Gb header
only on Loonix

Unless you save the original position of the 1s somewhere in the file, then you basically deleted that data and made the file unopenable.
If you did save it somewhere, then it would take way more space than it would have if you just left the 1s in.

I wonder what results I'd get if I switched all 1's and 0's on a bunch of programs.

They wouldn't load. Very exciting.

>computer only understands 0's and 1's
>compress a file by replacing all 1's with 2's
>computer can not read 2's therefore they require no space whatsoever on HDD
>replace 2's back to 1's when uncompressing
Why hasn't this been done?

dit sou wees asof ek julle gepraat jy in 'n taal wat jy nie verstaan baie verwarrend

Thanks for making me laugh user, here's a cookie.

There is only 10 kinds of people. Those who understand binary and those who don't.

I get that binary joke hahhaa

>cookie in orange juice
you motherfucker

He brushed his teeth straight after too

I'll raise you one orange juice mixed with milk

Hou je bek afrikaan

Real question though, how does modern compression works?

Fuck off back to plebbit.

Which algorithm?

Sighs

I have told you 100 times

Your mother sits on the data and it gets crushed flat

Why not delete the 1's too?

Then you'll have a file that's 0 bytes

my wife groans everytime I tell this

it's up there with "yo momma so fat she she stepped on the scale and overflowed an unsigned long long" for so lame it's awesome

I see you have experience with the /dev/null compression algorithm.

>tiny bit lossy

>how does [...] works
>does
>works
>s
Fuck off, you filthy uneducated spic.

Good one mate

the hawking compression algorithm is better.

>find black hole
>throw memory into it
>come back 10^100 years from now and collect your data
>not that lossy

>genius idea
>most retarded shitpost in the history of Sup Forums

Kill your parents for not having you aborted and then kill yourself or being a fucking loser.