Until it gets widely adopted and people want to have certain feature, etc.
Golang I think (mostly) successfully resisted this temptation
Why Zig Is Quietly Doing What Rust Couldn't: Staying Simple
21–30 of 36 posts
Re: Why Zig Is Quietly Doing What Rust Couldn't: Staying Simple
#22I stopped reading when he compared the Rust compiler to his angry ex. Like, what are we doing. This “article” is flame bait.
Re: Why Zig Is Quietly Doing What Rust Couldn't: Staying Simple
#23"1. Rust Promised Us Heaven. Then Gave Us Paperwork.
Remember the hype? Rust was the "C killer." The messiah of memory safety. The savior of systems programming."
Re: Why Zig Is Quietly Doing What Rust Couldn't: Staying Simple
#24That’s a weird article. Rust wanted to be safe systems language and it is. Where’s the issue? Zig has different goals. That’s ok. What are actually discussing here?
Re: Why Zig Is Quietly Doing What Rust Couldn't: Staying Simple
#25I know this post is AI generated to some extent but I'm still curious. The subtitle says: > Rust shouted about safety. Zig just built it — without the ceremony, the sermons, or the 15-minute compile times. Which I interpret as meaning that zig delivers memory safety in a simpler way than rust. But a few paragraphs in, it says: > Rust teaches you ownership like a tough-love therapist. Zig, meanwhile, just shrugs and s…
pub fn main() !void {
std.debug.print("Hello, World!\n", .{});
}
The only difference is this writes to stderr and does not fail (and explicitly says it is meant for debug), while their example writes to stdout. In zig if you want to write to stdout you need to explicitly pick the std and handle all the details (like error handling).He gave the possible worst example, this article is nonsense.
Re: Why Zig Is Quietly Doing What Rust Couldn't: Staying Simple
#26Zig has no undefined behavior?
Re: Why Zig Is Quietly Doing What Rust Couldn't: Staying Simple
#27I know this post is AI generated to some extent but I'm still curious. The subtitle says: > Rust shouted about safety. Zig just built it — without the ceremony, the sermons, or the 15-minute compile times. Which I interpret as meaning that zig delivers memory safety in a simpler way than rust. But a few paragraphs in, it says: > Rust teaches you ownership like a tough-love therapist. Zig, meanwhile, just shrugs and s…
It has a very weird feeling complaining about build.rs when any semi-serious Zig project comes with a build.zig that's always more complex than any build.rs.
Re: Why Zig Is Quietly Doing What Rust Couldn't: Staying Simple
#28I know this post is AI generated to some extent but I'm still curious. The subtitle says: > Rust shouted about safety. Zig just built it — without the ceremony, the sermons, or the 15-minute compile times. Which I interpret as meaning that zig delivers memory safety in a simpler way than rust. But a few paragraphs in, it says: > Rust teaches you ownership like a tough-love therapist. Zig, meanwhile, just shrugs and s…
But to address the serious question: We can't have all three of: a simple language, zero-cost abstractions, and memory safety.
Most interpreted language pick simplicity and memory safety, at a runtime cost. Rust picks zero-cost abstractions and memory safety, at an increasingly high language complexity cost. C and Zig choose zero-cost abstractions in a simple language, but as a consequence, there's no language-enforced memory safety.
(Also, having a simple language doesn't mean that any particular piece of code is short. Often, quite the opposite.)