rars in Rust, bro
I’ve done a few different reverse-engineering projects with LLMs, and figured it’s time to push the clankers to their limits. A RAR compressor for every version of RAR ought to have taken about 5 years, which is why nobody has ever bothered. Today, it takes 5 weeks of evenings and weekends, clanking OpenAI Codex 5.5 and Claude Opus 4.7, and cost roughly £40 in (heavily subsidised) tokens. Yes it’s 55k lines of slop, no it’s not that fast, and it almost earned me an OpenAI ban. But it works. RAR was originally an LZSS compressor for DOS, which peaked in popularity as the warez scene’s format of choice. Fighting with WinZip for feature parity and supremacy, WinRAR boasted multi-volume support, recovery records and even an internal VM, but its USP was always superior compression. It’s a middle-aged format that never stopped growing up, it’s as big as a house. unrar comes with source code but that code is not actually free, and somewhat ironically RAR’s author Eugene Roshal isn’t a big fan
rars in Rust, bro 🦀 rars in Rust, bro I’ve done a few different reverse-engineering projects with LLMs, and figured it’s time to push the clankers to their limits. A RAR compressor for every version of RAR ought to have taken about 5 years, which is why nobody has ever bothered. Today, it takes 5 weeks of evenings and weekends, clanking OpenAI Codex 5.5 and Claude Opus 4.7, and cost roughly £40 in (heavily subsidised) tokens. Yes it’s 55k lines of slop, no it’s not that fast, and it almost earned me an OpenAI ban. But it works. SPECIF~1.RAR RAR was originally an LZSS compressor for DOS, which
saved by
related reading
- Rewriting Bun in Rust | Bun Blogbun.com
- LLMs can invent their own compression - Rajan Agarwalrajan.sh
- Shipping at Inference-Speed | Peter Steinbergersteipete.me
- Learnings from 100K Lines of Rust with AI | Cheng Huang’s cornerzfhuang99.github.io
- Astra for Coding: Why Are We Doing This Again?lucumr.pocoo.org
- GitHub - ultraworkers/claw-code: An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.github.com
- Building personal software with Claude - Made of Bugsblog.nelhage.com
- There's no reason for software to be slow anymoredanluu.com
- Ralph Wiggum as a "software engineer"ghuntley.com
- My Thoughts on the Bun Rust Rewriteandrewkelley.me
- [2309.10668] Language Modeling Is Compressionarxiv.org
- Ampampcode.com