Rars is a Rust-based RAR decompression library, largely generated by large language models. The library achieves high-performance decompression, with reported speeds of up to 2.5 GB/s on a single thread, by leveraging Rust's ownership model and the RAR algorithm's Huffman coding.
Overview
The development of Rars involved using OpenAI Codex 5.5 and Claude Opus 4.7 to generate code from specifications. The process took around 5 weeks, with the models producing around 55,000 lines of code. The library is now available, although it is noted to be slow and somewhat worse than WinRAR on compression.
What it does
Rars is a free software RAR implementation that can decompress RAR files. It supports various features, including multi-volume support, recovery records, and encryption. The library can be installed using cargo install rars-cli.
Tradeoffs
While Rars is a significant achievement, it has some tradeoffs. The library is slow and not as efficient as WinRAR. Additionally, the code generated by the models can be sloppy and may require refactoring. However, the use of autonomous research and modern models has shown to be extremely powerful in generating code from specifications.
The development process involved using tests, documentation, and comments to shape the context and steer the models. The use of review agents, such as Claude, helped to identify errors and inconsistencies, but also had blind spots that needed to be addressed.
In conclusion, Rars is a free software RAR implementation that works, although it has some limitations. The development process has shown the potential of using large language models to generate code from specifications, and the importance of careful testing and review.