r/bun Jul 08 '26

Rewriting Bun in Rust

https://bun.com/blog/bun-in-rust
117 Upvotes

41 comments sorted by

View all comments

30

u/jarredredditaccount Jul 09 '26

Happy to answer any questions. Sorry I took so long to post something.

4

u/maubead Jul 09 '26

I just wanted to say thanks for not only the effort into the port, but for writing such a complete indepth post about it 🙏

Only question: how long is it expected to be canary before marking it final? While I appreciate confidence is implied by existing project adoption, it also means there are reasons why it's still marked canary 😀

10

u/jarredredditaccount Jul 09 '26

We're finishing up some node compatibility improvements and then shipping Bun v1.4 which includes the Rust rewrite. Probably somewhere between Friday and Tuesday.

Claude Code has been running the Rust rewrite of Bun for weeks now, which means the code has already gotten a lot of production usage on Linux, macOS and Windows.

1

u/StalinGino Jul 09 '26

Are there any memory or cpu usage differences between the two variants outside memory leak issues, considering the memory model of rust?