logoalt Hacker News

Jarredtoday at 10:41 AM9 repliesview on HN

Still writing the blog post about this. Will share more details.

For where this is coming from, skim the bugfixes in the Bun v1.3.14 and earlier release notes. Rust won’t catch all of these - leaks from holding references too long and anything that re-enters across the JS boundary are still on us. But a large % of that list is use-after-free, double-free, and forgot-to-free-on-error-path, which become compile errors or automatic cleanup.


Replies

tasukitoday at 12:52 PM

You, nine days ago[0]:

> I work on Bun and this is my branch

> This whole thread is an overreaction. 302 comments about code that does not work. We haven’t committed to rewriting. There’s a very high chance all this code gets thrown out completely.

Maybe... it wasn't such an overreaction?

[0]: https://news.ycombinator.com/item?id=48019226

show 2 replies
janice1999today at 10:55 AM

I'm curious how much this would cost a paying customer. Can you please give us an estimate?

calmootoday at 11:36 AM

Will this likely fix stability issues in the Bun Workers API? https://bun.com/docs/runtime/workers

randypewicktoday at 12:02 PM

Did you (or will you) implement some kind of e2e (fuzzy?) testing comparing the two binaries? Do you have particular plans regarding the release of this (for ex to not break users workflows or things like that)?

dolmentoday at 12:19 PM

Does that mean that from now your coding agents working on the Bun codebase are themselves running on that rust-Bun runtime?

pulsartwintoday at 10:44 AM

Looking forward to the blog post. Do you plan to run both the Zig and Rust binaries side-by-side across a wide range of real applications (potentially shadowing in production) to weed out bugs?

show 1 reply
eddiewithzatotoday at 10:42 AM

I can hope this will lead to little to no memory issues in using bun as a web server

show 1 reply
fatata123today at 12:46 PM

[dead]

LucidLynxtoday at 12:05 PM

[flagged]

show 2 replies