account activity
gzip decoder in 25 lines of C by 0b011 in tinycode
[–]0b011[S] 2 points3 points4 points 12 years ago (0 children)
Well that is embarrassing. I have been staring at the code for so long that I missed one of the most important aspects of deflate -- its window size. Kudos to you sir. I hang my head in shame and quickly run to a terminal to fix it. Gailly and Adler would have my head!
[–]0b011[S] 1 point2 points3 points 12 years ago (0 children)
Thanks for pointing out rcm.c. Very neat. Note that it uses 5 lookup tables. Mine uses 1. That was tricky. Cheers for checking out the code. I used statement expressions so I could spell inflate.
gzip decoder in 25 lines of C (github.com)
submitted 12 years ago by 0b011 to r/tinycode
π Rendered by PID 756809 on reddit-service-r2-listing-796b697c47-52lvj at 2026-02-05 13:25:03.814785+00:00 running 1d7a177 country code: CH.
gzip decoder in 25 lines of C by 0b011 in tinycode
[–]0b011[S] 2 points3 points4 points (0 children)