Is Zig worth it over Rust in 2026?

Is Zig worth it over Rust in 2026?

4 pointsby soywod1 comments

Comments

Hacker News

Worth it for what?

The "what" is important.

by grugdev42

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.

by gysakai

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

by speedgoose

I may be wrong, but my personal experience is just that AIs are better at better-documented languages. By now, Rust is very well documented, perhaps significantly better than Zig (I haven't verified!).

Try asking an AI to write OpenCL shaders for you. It constantly hallucinates function calls that don't exist. I presume it is just because the language is does not have the ocean of documentation that others have.

by dyingkneepad

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.

by iExploder

Join the discussion

Write your take first — we'll ask for email only when you're ready to publish.

  • Hacker News
  • c
  • Worth it for what?

    The "what" is important.

  • 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.
  • It depends. PHP can be a better choice than Rust in some cases. But in general, in my opinion, no.
  • I may be wrong, but my personal experience is just that AIs are better at better-documented languages. By now, Rust is very well documented, perhaps significantly better than Zig (I haven't verified!).

    Try asking an AI to write OpenCL shaders for you. It constantly hallucinates function calls that don't exist. I presume it is just because the language is does not have the ocean of documentation that others have.

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