• gzip decompression quine

    From edmund.grimley.evans@gmail.com@21:1/5 to All on Fri Jul 12 01:09:10 2019
    The gzip quine described above, selfgz.gz, has 210 bytes. Here's a shorter one, with 112 bytes:

    ( echo H4sIAEMHJV0CA5Pv5mCIeLzKnIGZgYHh/38GEYbX/+WxiDl1 ;
    echo KB5hIIJ1TXfrBNeU3DznNGYG78SS1AKgEchsAEthdGVwAAAA ) |
    base64 -d | gunzip > quine.gz
    zcat quine.gz | diff - quine.gz

    There is probably an even shorter one.

    There's a good discussion of the theory of LZ quines here: https://research.swtch.com/zip

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)