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
12•RustSupremacist•2h ago

Comments

didibus•2h ago
> No hidden control flow.

I've really been thinking about this one.

I'm currently designing and implementing an async library and I've been wondering what's better, structured concurrency or explicit scopes.

Explicit scopes allow you to see and think exactly how you want to relate every async task or not. But you have to pass it around, it's more verbose, and you can get mixed up in your scopes.

Structured concurrency handles it automatically, the structure of the code is implicitly the scope of your tasks. Less verbose, can't forget about it, or get it mixed up, but it's magical, you might not even realize it's happening, and understanding mentally what the scope ends up being requires you to understand really well how the structured concurrency implicitly infers your scopes.

I can't decide which is best.

pestatije•1h ago
Zig or Rust?
didibus•1h ago
Actually Clojure :p

I'm just looking for inspiration elsewhere and I see Zig and Rust as each having chosen the opposite path.

Zig is explicit, pass everything around, the allocator, scopes, etc.

Rust is implicit and heavily structured, allocation, lifetime, scopes is all based on code structure.

chuckadams•1h ago
Consider the explicit solution and a layer of sugar for making it implicit from structure, whether it's macros or a DSL or whatever. Abstractions work best when they stack.
renewiltord•1h ago
Enormous amount of language war slop and like 7 lines of code. Christ. The tragedy wasn’t that LLMs would mimic people but that people would mimic LLMs.
chuckadams•1h ago
> 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.

Yep, just need programmers to roll up their sleeves and write code without errors. That's worked out great for the whole history of never. And I like Zig, but not this way.

metalliqaz•1h ago
missing from the article is a mention for non-Zig-users how one manages allocators to make "code that doesn't crash" without Rust's borrow checking.
kllrnohj•1h ago
> Rust assumes you can't be trusted. Zig assumes you're an adult.

> You can onboard a junior dev to Zig faster than you can explain Rust's Result<T, E> patterns to a senior.

Ahahahahaha. Oh wait, you're serious? Let me laugh even harder!

But seriously this article can't make up its mind. Zig built safety, except it isn't safe because it just trusts you. Zig assumes you're adult and doesn't help you, but also it's easy and anyone can do it!

The contradictions just keep flowing throughout this entire puff piece.

> That's it. No macros. No build.rs. No Cargo screaming about outdated crates. > Deterministic build system that works like clockwork.

Oh, really? Zig doesn't have a build.rs? And why is that? Couldn't possibly just be because it's called build.zig instead, could it? https://ziglang.org/learn/build-system/#installing-artifacts

And what's that? Oh, Zig also has a lazily fetched package manager? And it encourages everyone to use nightly because it's not a stable language yet? Tell me more about how cargo complains too much about outdated crates.

gfs•1h ago
I stopped reading after I saw the bullet point stating Zig doesn't have undefined behavior.
marekzan•1h ago
Hahaha that's where I stopped too.
JuniperMesos•1h ago
This has a lot of hallmarks of contemporary-LLM-generated prose. I don't think it's bad in and of itself to use LLMs to generate writing, but the prose does come across as kind of repetitive and boring to read.

Anyway I don't see this as a rousing Zig endorsement. The Rust tooling and borrow checker and type system are complex to learn (and contribute to slow compile times which is a genuine downside of Rust), but give you huge benefits in terms of correctness guarantees. And I think people highly underrate the value of writing software that you can guarantee won't fail in certain ways.

I am personally more familiar with Rust than Zig, although I've looked into Zig some. I think that trying approaches to systems languages that are different from the design decisions Rust made is in general a very worthy project. Zig does trade off the amount of memory safety guarantees Rust has in order to have a simpler model of pointers, which is perhaps a reasonable tradeoff in a systems language although I still think the value of the Rust borrow checker is huge. I'm actually more annoyed in Zig by the lower amount of type expressivity compared to Rust - `Result<T, E>` is actually a pretty cool abstraction, and it sucks that you can't easily build this in Zig because of the lack of type level generics support (I'm aware you can do things with comptime to get something similar).

Again, my personal familiarity with Zig is limited and I'm aware the language is still in active development. I think I still prefer the design tradeoffs Rust makes; still, I support the Zig designers (and designers of Nim, Odin, and other novel systems languages) trying out different ideas, and users testing out these languages to build real software.

SubGenius•1h ago
Is this some kind of language wars engagement farming?

The OP submitted a post earlier titled "Zig Looked Like the Future – Until We Tried Multithreading" from the same blog.

What's going on?

0 - https://news.ycombinator.com/submitted?id=RustSupremacist

1 - https://freedium-mirror.cfd/zig-looked-like-the-future-until...

chuckadams•1h ago
> engagement farming?

Back in my day we called it trolling.

kristoff_it•1h ago
This writing is absolutely too vapid (even as far as AI slop goes), especially for the kind of jabs it makes at Rust.

Zig is not the end solution to all problems, just like neither Rust is. Each is a sweetspot on the spectrum of possible solutions, each with it's own sets of pros and cons that appeal differently to different people.

It used to be that some Rustaceans would be aggressive against Zig and that has thankfully died down. We do not need to repeat the same the other way around, so please don't get baited by AI slop.

Also, you don't `catch unreachable` errors when printing to stdout.

Cartolina: 3D Terrain Cartography for the Web

https://cartolina.dev/
1•gaws•1m ago•0 comments

The Medici Method

https://www.palladiummag.com/2025/11/07/the-medici-method/
1•sebg•1m ago•0 comments

Rovina's Choice

https://www.newyorker.com/culture/the-new-yorker-documentary/the-shutdown-of-usaid-has-already-ki...
1•perihelions•2m ago•0 comments

Scientists study plant with highest known heat tolerance in Death Valley

https://www.sfgate.com/bayarea/article/calif-scientists-groundbreaking-study-death-valley-2114361...
2•mykowebhn•4m ago•0 comments

Petri AI Testing 'Closes' possible solution without looking

https://github.com/safety-research/petri/issues/20
1•Utharian•5m ago•0 comments

ChineseNationals from UMich lab charged for smuggle biomaterials into US

https://www.justice.gov/usao-edmi/pr/three-chinese-national-scholars-university-michigan-laborato...
2•737min•6m ago•1 comments

AI Tools that I've Seen in the Wild

https://aplaceofmind.notion.site/AI-Tools-that-I-ve-Seen-in-the-Wild-2a40a6eeb81d80a89530daa4d741...
1•behnamoh•7m ago•0 comments

VLC's Jean-Baptiste Kempf Receives the European SFS Award 2025

https://fsfe.org/news/2025/news-20251107-01.en.html
1•kirschner•8m ago•0 comments

Convert static forms to Ajax'ed forms instantly

https://github.com/sleekcms/ajaxed-forms
1•yusufnb•8m ago•0 comments

Best Reranker for RAG: We tested the top models

https://agentset.ai/blog/best-reranker
1•tifa2up•10m ago•0 comments

Open Source in 2026 Virtual Event – Jan 13

https://www.punch-tape.com/events/open-source-in-2026
2•raeroumeliotis•12m ago•1 comments

James Watson, who co-discovered DNA's double helix shape, dies at age 97

https://apnews.com/article/james-watson-obituary-dna-double-helix-nobel-c1f6d589f2d0d4751859168f9...
3•WaitWaitWha•12m ago•1 comments

Show HN: Command line YouTube downloader,a universal media solution for everyone

https://github.com/Saffron-sh/m2m
2•saffron-sh•12m ago•0 comments

Lectures on Mathematics (1893)

https://archive.org/details/lecturesonmathe00kleigoog
2•measurablefunc•13m ago•0 comments

Ribir: Non-intrusive GUI framework for Rust/WASM

https://github.com/RibirX/Ribir
2•adamnemecek•13m ago•0 comments

SSH teletekst.nl - in Dutch, but just try it (mouse works!)

1•ttsiodras•14m ago•0 comments

What 986M code pushes say about the developer workflow in 2025

https://github.blog/news-insights/octoverse/what-986-million-code-pushes-say-about-the-developer-...
1•mooreds•16m ago•0 comments

Show HN: UK Medical Agency Might Use Gemini Flash Lite

https://openrouter.ai
1•tobwen•18m ago•0 comments

SCOTUS weighs whether to hear appeal seeking to overturn marriage equality

https://www.axios.com/2025/11/07/supreme-court-kim-davis-gay-marriage-equality-appeal
2•mikhael•19m ago•0 comments

GSoC 2025 Showcase: Extending Swift-Java Interoperability

https://swift.org/blog/gsoc-2025-showcase-swift-java/
1•frizlab•21m ago•0 comments

World’s biggest spiderweb discovered within Sulfur Cave

https://www.livescience.com/animals/spiders/worlds-biggest-spiderweb-discovered-inside-sulfur-cav...
2•layer8•22m ago•0 comments

"Vibe coding" beats "clanker" to be Collins dictionary's word of the year

https://www.theguardian.com/technology/2025/nov/06/vibe-coding-collins-dictionary-word-of-the-yea...
1•aratahikaru5•22m ago•1 comments

Show HN: Solv – Stateless Offline-capable LiveView – Prototype 03

https://github.com/phucvin/solv-03
1•phucvin•22m ago•0 comments

2 Years Self-Taught with AI Only → Full AI Bias Framework (GitHub)

https://github.com/CoordinatorBel/ai-bias-true-issues
1•CoordinatorBel•23m ago•0 comments

The Expressive Power of Constraints

https://github.com/Dobiasd/articles/blob/master/the_expressive_power_of_constraints.md
1•thunderbong•26m ago•0 comments

Mapping Alien Worlds in 3D

https://www.universetoday.com/articles/mapping-alien-worlds-in-3d
1•geox•26m ago•0 comments

DNA pioneer James Watson dies at 97

https://www.bbc.co.uk/news/articles/cn8xdypnz32o
2•markx2•26m ago•1 comments

Anukari on the CPU (part 2: CPU optimization)

https://anukari.com/blog/devlog/anukari-on-the-cpu-part-2-cpu-optimization
1•humbledrone•27m ago•0 comments

Teach Your AI to Think Like a Senior Engineer

https://every.to/source-code/teach-your-ai-to-think-like-a-senior-engineer
1•gmays•29m ago•1 comments

Show HN: I built a Free "Masterclass" from YouTube clips

https://opencademy.com/
3•longerpath•31m ago•6 comments