Remix.run Logo
stgn 8 hours ago

> so i wrote a gzip decompressor from scratch

After skimming through the author's Rust code, it appears to be a fairly straightforward port of puff.c (included in the zlib source): https://github.com/madler/zlib/blob/develop/contrib/puff/puf...

cmovq 3 hours ago | parent | next [-]

Even the function names are identical :/

dymk 7 hours ago | parent | prev | next [-]

This feels like it should have been mentioned in the article.

It makes me wonder if there was some LLM help, based on how similar the fn structure and identifier names are.

f1shy 6 hours ago | parent | next [-]

> It makes me wonder if there was some LLM help

I would bet there was

fuhsnn 6 hours ago | parent | prev [-]

> This feels like it should have been mentioned in the article.

With an entire section complaining how many lines of code existing implementations are, looks like they did found a good simple implementation to clone in Rust then deliberately not mention it.

bitbasher 5 hours ago | parent | prev [-]

You could say it was a “puff” piece, eh, eh!?