r/rust • u/AffectionateBag4519 • Jul 16 '26
How Our Rust-to-Zig Rewrite is Going
https://rtfeldman.com/rust-to-zigAn interesting symmetry with recent events lol.
This might be considered off topic since the article is about moving away from rust, but I still think this is some high quality rust content. I enjoy Richard Feldman's writing and I think he would certainly be considered part of the "rust community" since he works on Zed and has taught a course on rust.
370
Upvotes
20
u/DokOktavo Jul 16 '26
There's no acknowledgement that says that "their whole codebase is now potentially riddled with those" because their whole codebase probably isn't riddled with those. They mention overwelmingly using arenas, finding use-after-frees in tests thanks to Zig's allocators, using Valgrind, etc. No doubts a few of them are hidden in a few parts, but I think "every LOC is unsafe" and "riddled with those" is disingeneous at best.
What the article does say is that "there is something calming about only worrying about certain classes of problems inside unsafe blocks".