4 ms·
The file that decompresses to itself is a work of art. How does one even go about to create something like this?
by sulami 11y ago
The file that decompresses to itself is a work of art. How does one even go about to create something like this?
- quarterto 11y agoLike this: http://research.swtch.com/zip http://research.swtch.com/zip. Fascinating read.
- Cyph0n 11y agoWritten by THE Russ Cox?
- DanBC 11y agoI have no idea. There are people who take special interest in compression. The Hutter Prize would be a good place to find them. http://prize.hutter1.net/ http://prize.hutter1.net/ It's a bit old now. > Restrictions: Must run in <10 hours on a 2GHz P4 with 1GB RAM and 10GB free HD I'd be interested to see what can happen without those restrictions.
- ars 11y ago> I'd be interested to see what can happen without those restrictions. If you did not have time limits you could exhaustively search through Pi looking for your data, then store just the offset into Pi. Or if the offset got too large then Pi to the power of lots of random numbers. One of those numbers will, somewhere, have your data. But it's infeasible to search for it.
- TheLoneWolfling 11y agoA common misconception. There is no universal compression algorithm, by the pigeonhole principle. And your compression scheme won't work by the simple fact that the offset of where in Pi your data lies will, on average, take the same number of bits to store as the data itself. Ditto, with pi to the power of lots of random numbers, the offset and the power will, on average, take the same number of bits to store as the data itself.
- nanofortnight 11y agoQuines. https://en.wikipedia.org/wiki/Quine_%28computing%29 https://en.wikipedia.org/wiki/Quine_%28computing%29 LZ77 Quine: http://steike.com/code/useless/zip-file-quine/ http://steike.com/code/useless/zip-file-quine/