Bun’s rewrite from Zig to Rust passes 99.8% of testsuite

per @jarredsumner:

99.8% of bun’s pre-existing test suite passes on Linux x64 glibc in the rust rewrite

it’s basically the same codebase except now we can have the compiler enforce the lifetimes of types and we get destructors when we want them. and the ugly parts look uglier (unsafe) which encourages refactoring.

why: I am so tired of worrying about & spending lots of time fixing memory leaks and crashes and stability issues. it would be so nice if the language provided more powerful tools for preventing these things.

But how long does it take to compile?

It’s basically the same as in zig using our faster zig compiler. If we were using the upstream zig compiler, rust port would compile faster

submitted by /u/read_volatile
[link] [comments]