Hacker News new | ask | show | jobs
by 0d0a 269 days ago
Exactly, it misses out on explaining how the fixed Huffman table is interpreted to apply symbol and distance codes, or how dynamic tables are derived from the input itself. Sure it's the hardest part, but also the more interesting to visualize. As another commenter pointed out, we are just left with mysterious bit sequences for these codes.

It would be cool if we could supply our own Huffman table and see how that affects the stream itself. We might want to put our text right there! https://github.com/nevesnunes/deflate-frolicking?tab=readme-...

1 comments

I think this is something that makes a decent teaching aid but doesn't work well for the uninitiated.

You need someone to spell out exactly what each of the sections are and what they are doing.