News for hackers. Stuff that matters.
Re:Gzip + poetry = awesome by JacksonGariety on Thursday October 24, 2013 @11:53PM (#6609658)
Can anyone explain what is going on here?
Re:Gzip + poetry = awesome by jws on Thursday October 24, 2013 @11:59PM (#6609676)
gzip works by constructing, on the fly, a dictionary of strings it has seen before and sort of inserting them by reference.

When you see something red and in braces, that is a bit that has occurred before and been inserted by reference.

I'm guessing that it is happening at a constant symbol rate, you'll notice it speeding up as it includes more and more text by reference instead of a single character at a time.

Re:Gzip + poetry = awesome by gry on Thursday October 24, 2013 @11:58PM (#6609670)
> Once upon a midnight dreary, while I {pon}ered

It's a visual demonstration how gzip works. The first line says it all. 'pon' matches the bytes in 'upon', the first first instance, thus it's pointer to those bytes instead of "duplicating" the pattern. As the text goes on, there are more matches, thus more pointers.

Re:Gzip + poetry = awesome by promoCode on Friday October 25, 2013 @07:10PM (#6615316)
For those who don't feel like watching a youtube video that shows a recording of the animated command line output, simply click this link:

https://rawgithub.com/jvns/7155528/raw/ef9785f023fc68d78dc4f...

The author explains what he did to produce this output, and provides links to his program's source code in his post, so OP's link is still a worthwhile read, but that link cuts to the chase.