Ask HN: Is Zig worth it over Rust in 2026?

5 pointsposted 12 hours ago
by soywod

Item id: 49063556

4 Comments

gysakai

2 hours ago

Yeah, same here.When I had AI test the code, the compiler catching its mistakes helped it keep going on its own and produce more robust code faster. Just my impression, thought.

iExploder

5 hours ago

My read is that If your codebase needs a lot of unsafe - on intersection of hw, need a lot of memory allocations with custom memory allocators, can take advantage of comptime, using a lot of c dependencies anyway. Maybe zig makes sense? It's a very niche space.

speedgoose

6 hours ago

It depends. PHP can be a better choice than Rust in some cases. But in general, in my opinion, no.