frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Why Zig Is Quietly Doing What Rust Couldn't: Staying Simple

https://freedium-mirror.cfd/@daxx5/why-zig-is-quietly-doing-what-rust-couldnt-staying-simple-a47f86b3a58a
32•RustSupremacist•1h ago

Comments

_fizz_buzz_•42m ago
Until it gets widely adopted and people want to have certain feature, etc.
davidsainez•37m ago
Golang I think (mostly) successfully resisted this temptation
Simran-B•25m ago
Generics though
0-R-1-0-N•33m ago
Considering language syntax proposals aren’t accepted anymore and they have a culture of being minimal I believe it will remain so.
ashdnazg•41m ago
Seems to be hugged to death: https://archive.is/UauYs
ZeelRajodiya•37m ago
Thanks man!
anttiharju•37m ago
Feels heavily AI-written, em dashes and the filler.
can3p•39m ago
Reads like a straw man. Was "being simple" anywhere in rust lang agenda?
bjackman•36m ago
It's fair to complain about Rust complexity IMO. What's _not_ fair is pointing at Zig as an example of how it could be simpler, when it's not memory safe. The requirements are different. At that point we might as well say "why use Rust when you can just use Go or TypeScript"
MrJohz•37m ago
Freedium is down, you may be able to read this using Medium instead: https://medium.com/@daxx5/why-zig-is-quietly-doing-what-rust...

I could only see the first few paragraphs, but the writing is giving off a lot of "AI slop" vibes (or perhaps even "human-written slop", let's give the author the benefit of the doubt). So maybe it's no great loss if it's behind a Medium paywall.

simonask•35m ago
I stopped reading when he compared the Rust compiler to his angry ex.

Like, what are we doing.

This “article” is flame bait.

gabrielgio•25m ago
I read it through and there is nothing much there. Most of his points don't hold up to reality as rust is no longer (and hasn't been for a while) a "hyped language" and has proven time and time again to be a valuable language.
orangeboats•33m ago
This was posted less than 2 weeks ago. Why bother doing it again?

https://news.ycombinator.com/item?id=45849204

CryZe•33m ago
Zig has no undefined behavior?
Simran-B•15m ago
Zig has the concept of illegal behavior, of which a subset is unchecked illegal behavior - basically undefined behavior, but if evaluated at comptime, it results in a compile error. The documentation also states that most illegal behavior is safety-checked unless you use the ReleaseFast or ReleaseSmall optimization modes (and don't enable safety checks for individual blocks).
captainbland•32m ago
> Rust shouted about safety. Zig just built it

This makes it sound like Zig built Rust equivalent safety but its manual memory model suggests otherwise?

rini17•32m ago
Perl too was refreshingly simple and DWIM(Do What I Mean).

And then it wasn't.

nottorp•29m ago
A thought: is using Rust a form of avoiding responsability?

And a second thought since the article seems to be flagged now: considering the fan reaction to a post disparaging their favorite language, how is the Rust community different from a religious cult now?

aw1621107•27m ago
> is using Rust a form of avoiding responsability?

How so?

> considering the fan reaction to a post disparaging their favorite language, how is the Rust community different from a religious cult now?

Believe it or not, not all criticism is created equal. High-quality criticism is consistently well-received from what I've seen. This doesn't seem to get particularly close to that bar.

ChadNauseam•25m ago
I 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 says, "You break it, you fix it." That's the philosophical divide. Rust assumes you can't be trusted. Zig assumes you're an adult.

Does this mean that zig's safety depends on trusting the programmer to write correct code? This wouldn't necessarily be a bad thing if zig makes correct code simple to write or has other advantages, but if incorrect code is allowed it makes sense why the compiler can be more permissive and I wouldn't say it's quite delivered the same thing as Rust.

Ok, another thing:

> Zig looks boring. Feels boring. Reads like a C project written by someone who finally went to therapy.

    pub fn main() void {
        const stdout = std.io.getStdOut().writer();
        stdout.print("Hello, World!\n", .{}) catch unreachable;
    }
> That's it. No macros. No build.rs. No Cargo screaming about outdated crates.

Am I crazy or does this not actually look simpler than

    fn main() {
        println!("Hello, world!");
    }
Is the zig version doing something other than hello world? Or did the author, in their post about how zig is simpler and more readable than rust, choose a code example where the corresponding rust code would be much simpler and more readable?
gabrielgio•16m ago
There is a simpler version for zig.

    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.

tuetuopay•13m ago
Zig's memory safety has nothing in common with Rust. I'd even say, it mostly has barely more than C. It gets reliability from proper error handling.

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.

codeflo•12m ago
Logical contradictions in AI slop? Unthinkable!

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

ravenical•23m ago
Yeah, this is AI.

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

yonki•21m ago
>Zig, meanwhile, just shrugs and says, "You break it, you fix it."<

Exactly. That’s what Rust defends us from. It makes breaking things way harder. Rust forces you to think differently, you cannot just do what you want, but that’s it’s selling point. The article focuses mainly on feelings not facts and that’s ok, but I don’t feel exhausted writing Rust. I like that it’s safe and I’m happy to sacrifice some freedom if I get safety in return.

That’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?

kugutsumen•2m ago
AI generated slop...
lenkite•2m ago
I like the article's theme. Coding in Rust does indeed suck brain-power and even after 2 years of off-and-on attempts, I am still faster (and less tired) in other languages (including C++). But the LLM generated text is just deeply pissing me off, sorry. Why use snarky LLM stuff here ?

The sixtyforgan: a Commodore 64 with a spring reverb; chiptunes like a church or

http://www.linusakesson.net/sixtyforgan/
1•fanf2•1m ago•0 comments

Cytotoxicity and Endocrine Disruption in Orthodontic Retainers Materials

https://pmc.ncbi.nlm.nih.gov/articles/PMC12191447/
1•robtherobber•1m ago•0 comments

Ranking the Atari 8-Bit Computers – By Paul Lefebvre

https://www.goto10retro.com/p/ranking-the-atari-8-bit-computers
1•rbanffy•4m ago•0 comments

Show HN: I made a drop-in Voice Mode for AI startups

https://www.memoreco.com/explainers/voice-mode
2•andupotorac•6m ago•0 comments

Trump admin changes may stop millions for broadband expansion in Kansas

https://thebeaconnews.org/stories/2025/11/19/kansas-internet-infrastructure-weakened-by-trump-gui...
2•KingNoLimit•7m ago•0 comments

It's Time to Kill Staging: The Case for Testing in Production

https://thenewstack.io/its-time-to-kill-staging-the-case-for-testing-in-production/
2•BerislavLopac•9m ago•0 comments

EXo Platform Launches Version 7.1

https://www.exoplatform.com/blog/exo-platform-7-1-revamped-ux/
2•jaouanebrahim•9m ago•1 comments

Do We Need the Digital EURO: A Solution to What Problem Exactly? [pdf]

https://institutodeanalistas.com/wp-content/uploads/8.-DO-WE-REALLY-NEED-THE-DIGITAL-EURO.-A-SOLU...
3•ggirelli•9m ago•0 comments

Show HN: Cllavio – Email Marketing and Email API platform built from scratch

https://cllavio.com
1•vullnetsahiti•12m ago•0 comments

Numbers vs. features in protocol versioning (2024)

https://meejah.ca/blog/protocol-versioning
2•todsacerdoti•12m ago•0 comments

Hunt for missing millions unmasks crypto exchange hidden inside another

https://www.icij.org/investigations/coin-laundry/hunt-for-missing-millions-unmasks-one-crypto-exc...
3•KingNoLimit•13m ago•0 comments

Exactly Once Is a Lie

https://docs.eventsourcingdb.io/blog/2025/11/20/exactly-once-is-a-lie/
1•goloroden•14m ago•0 comments

Garage44 – Modern web applications built with Bun, Preact, and DeepSignal

https://github.com/garage44/garage44
1•jvanveen•17m ago•0 comments

Show HN: Long Courrier – A custom web player for a 1h Barber Beats mix

https://monosky.mateo-siam.com/
1•Mateleo•19m ago•0 comments

Universal testing machines OEM software?

https://www.tinyutm.com/utmware/
1•DrNuke•22m ago•1 comments

Open source image generation with style codes (–sref))

https://kwai-kolors.github.io/CoTyle/
1•meander_water•24m ago•0 comments

Palo Alto Networks to buy Chronosphere for $3.35B

https://www.reuters.com/business/palo-alto-buy-chronosphere-335-billion-2025-11-19/
2•puppion•25m ago•0 comments

Nvidia Announces Financial Results for Third Quarter Fiscal 2026

https://nvidianews.nvidia.com/news/nvidia-announces-financial-results-for-third-quarter-fiscal-2026
5•raffael_de•27m ago•2 comments

Show HN: Fruit Ninja Created with Gemini3

https://gemini.google.com/share/f8a9599db344
1•leecy007•28m ago•0 comments

Show HN: Taskai – AI-powered reminders that reduce mental load

2•ZackMomily•30m ago•0 comments

Show HN: Swipeable TikTok Style Video Embed – Pitch Your Visitors Async

https://app.harloop.com/preview
2•chinmaypingale1•31m ago•0 comments

Interactive language learning with Claude Code

https://github.com/m98/fluent
1•rioppondalis•33m ago•0 comments

ATTiny85 – MNIST RNN model run via the internal 512-Byte EEPROM

https://github.com/GiorgosXou/ATTiny85-MNIST-RNN-EEPROM
2•xou•36m ago•1 comments

Italy allows extradition of Ukrainian suspect in Nord Sea pipeline sabotage

https://www.euractiv.com/news/italy-allows-extradition-of-ukrainian-suspect-in-nord-sea-pipeline-...
1•colinprince•36m ago•0 comments

DOS Days – Laptop Displays

https://www.dosdays.co.uk/topics/laptop_displays.php
1•nullbyte808•38m ago•0 comments

Ask HN

1•fangzhang_new•41m ago•1 comments

Story of a Beijing Vibe Coder

https://afraw.substack.com/p/story-of-a-chinese-vibe-coder
1•colinhb•41m ago•0 comments

Autonomously Folding Napkins for 24 Hours

https://www.dyna.co/dyna-1/research
2•v9v•42m ago•0 comments

The EU wants to kill cookiebanners by moving consent to the browser

https://www.simpleanalytics.com/blog/the-eu-wants-to-kill-cookie-banners-by-moving-consent-to-you...
3•birdculture•46m ago•0 comments

A taxonomy of the video game production scope

https://hushcrasher.substack.com/p/taxonomy-of-games
1•danbolt•46m ago•0 comments