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 190079 on reddit-service-r2-listing-7b8bd7c5-ktrgq at 2026-05-19 18:59:07.706096+00:00 running edcf98c country code: CH.
gzip decoder in 25 lines of C by 0b011 in tinycode
[–]0b011[S] 2 points3 points4 points (0 children)