Bun ported to Rust in 6 days
4 hours ago
- #Rust rewrite
- #bun
- #software development
- 99.8% of bun's existing test suite passes on Linux x64 glibc in the Rust rewrite.
- The rewrite offers compiler-enforced lifetimes and destructors to reduce memory leaks, crashes, and stability issues.
- A blog post will detail benchmarks, memory usage, maintainability, and the process of rewriting 960,000 LOC in 6 days.
- The rewrite was not done manually but efficiently, and the codebase remains similar but with unsafe parts marked as uglier to encourage refactoring.