news.volyx.in

Rewrite Bun in Rust has been merged (github.com)

708 points by Chaoses · 61 days ago · 789 comments on HN

Article summary

The Bun project has merged a rewrite of its codebase in Rust, which has been completed in a short timeframe of 9 days. The new version passes the existing test suite, reduces binary size, and provides compiler-assisted tools for catching memory bugs. The codebase is largely the same, with the same architecture and data structures. The rewrite is currently available in the canary version, with some optimization and cleanup work still to be done.

Main themes

  • Rust rewrite
  • Bun project
  • Codebase migration
  • AI-assisted development
  • Testing and validation
  • Project management

What commenters say

  • The rapid completion of the Rust rewrite is unprecedented and may not be thoroughly tested, potentially leading to unforeseen issues.
  • The decision to merge the rewrite so quickly may be driven by marketing considerations rather than technical readiness.
  • The use of AI tools in the rewrite process raises concerns about the reliability and maintainability of the resulting code.
  • The rewrite may introduce backwards compatibility issues, particularly if the changes made to the tests themselves are not thoroughly reviewed.
  • The project's approach to testing and validation is insufficient, and a more cautious approach would be to release the rewrite as a separate binary for testing before merging it into the main codebase.
  • The success of the rewrite is uncertain and may depend on various factors, including the quality of the AI-generated code and the effectiveness of the testing process.
  • The project's transparency and communication about the rewrite process have been questioned, with some commenters feeling that the true intentions and timelines were not clearly disclosed.
  • The rewrite may be a positive development for the project, providing improved performance and maintainability, but its impact will depend on the outcome of further testing and refinement.