Re:Gzip + poetry = awesome
by jvns on Friday October 25, 2013 @12:19AM
(#6609732)
To clear this up: This is exactly how gzip actually works. I wrote a version of gunzip from scratch and just inserted some print statements in the middle to get this visualization.
[ Parent
| on HN ]
If anyone is interested, the part of the source code that produces the visualization is here: https://github.com/jvns/gzip.jl/blob/visualization/gzip.jl#L...
I ended up compiling Julia just so I could watch it in action myself:
http://showterm.io/2b572805187a499194e91#fast
Beautiful
THIS IS COOL. I did not know about showterm.io.
Re:Gzip + poetry = awesome
by jcampbell1 on Friday October 25, 2013 @12:25AM
(#6609751)
You are quite right, I am an idiot.
Frankly, learning about LZW[0][1] and the Burrows-Wheeler Transform[2] was probably one of the highlights of my first undergrad algorithms course. The latter certainly made me feel like an idiot, too.
[0] http://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Welc...
[1] For the record, LZW isn't used in gzip; it was the patent-encumbered compression format used in GIF.
[2] http://en.wikipedia.org/wiki/Burrows%E2%80%93Wheeler_transfo... (used in bzip2)
Re:Gzip + poetry = awesome
by jamesjporter on Friday October 25, 2013 @02:56AM
(#6610178)
BWT is mindblowing. So many applications; e.g. it's used by pretty much all popular biological sequence alignment software to compress genomes so they fit in memory during the alignment :D