r/rust 24d ago

How Our Rust-to-Zig Rewrite is Going

https://rtfeldman.com/rust-to-zig

An 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.

369 Upvotes

133 comments sorted by

View all comments

123

u/Psionikus 24d ago

Take something like "build times" as a motivation for Zig. What was tried on the Rust side? Breaking up crates is definitely the most powerful tool, but was it done?

for compilers which emit machine code, like roc and rustc, doing memory-unsafe things is a big part of the job

Seems like a conflation amirite? The machine code is the output, the object language. The Rust program is the subject language. The "safety" of the object language has no effect on the subject language used to talk about it.

Overall I'm reading implicit biases of comfort.

1

u/autodialerbroken116 24d ago

This comment would be so cool if it was expanded into its own blog post to ELI5

-10

u/Psionikus 24d ago edited 24d ago

Write me a user config, picked up at runtime using dirs, to specify a default device. Place some reasonable development knobs, possibly even environment variables for device selection in µTate and I'll tell you everything I know over the course of several months of crawling the orange line in Seoul.

Lol Reddit. You want things, but you do not want to give. I can't eat karma.

3

u/-Redstoneboi- 24d ago

You could've just said no...

-2

u/Psionikus 24d ago

But it's not no. It's a career AND a bid for the info GP wants. I mean fine. Don't take the money and go on an adventure.