Hacker News new | ask | show | jobs
by alraj 529 days ago
Why is Zig here?
1 comments

Shit, should have been Zed. The editor.
It would have been funny to suggest rewriting Zig in Rust. :)
Rewrite Rust in Zig.
Honestly either should be more than possible to do, although not sure how beneficial. It would certainly be very funny if Zig compiler would be implemented in Rust and, simultaneously, Rust compiler would be written in Zig
zig compiler does lots of things for speed that would push it well into unsafe rust, or unchecked rust (like using u32 index tags in arrays instead of pointers)
Even better! It would be a great opportunity for the author(s) to rewrite it in idiomatic Rust!