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

[留言]

为什么值得关注

能改变理解方式,而不只是重复常识;符合当前抓取需求;它提供了新的理解或解释,而不只是表面观点

来源:reddit,领域:projects,保留分:0.60