Ask HN: Rust, Zig, or C? 9 points · 14 comments TL;DR A text post asking Hacker ...
HN Best 200 @best
Ask HN: Rust, Zig, or C? 9 points · 14 comments
TL;DR A text post asking Hacker News readers which of three systems languages they prefer: Rust, Zig, or C. The poster says they personally lean toward C or Zig and that the question is not meant as loaded. The thread is short, with 14 comments, and most replies just name a favorite with a brief reason.
- The original post asks readers to pick between Rust, Zig, and C, and says the poster prefers C or Zig.
- Rust is praised for catching mistakes at compile time.
- C is praised for portability, low-level control, longevity, and retro computing use.
- One commenter shared a self-made language, xc, which auto-parallelises and vectorises code and uses ARC for memory management, and linked its docs.
- One commenter notes that C is the usual choice for circular references, while another asks whether language choice matters when AI writes much of the code.
Discussion The thread is a light, informal poll with a few short reasons attached to each answer. C gets the most votes, with several commenters citing portability, control, and longevity. Rust and Zig each get a few mentions, and Pascal and Odin come up as personal picks. The mood is relaxed and playful, with little argument. The one substantive exchange is about whether the choice of language still matters when AI tools write much of the code, with a commenter saying readability matters more than the language itself.
- C is the best choice for portability and control (most): Several commenters pick C for its wide platform support, direct control over what happens underneath, and long track record. One says it suits retro computing.
- Rust is preferred for compile-time safety (some): A commenter wants the compiler to catch mistakes before they happen. A Rust user says they are trying it after years of Java, mainly because others are using it.
- Zig is a good pick (a few): Zig is named as a favorite by a couple of commenters, with little explanation given.
- Language choice matters less with AI coding (a few): One commenter argues that in the AI vibe-coding era, what matters is being able to understand the program, even in an unfamiliar language.
- Other languages suit particular needs (a few): Pascal is preferred for its syntax and lack of macros and header files, Odin and Micron are named as alternatives, and one commenter argues every language has its use case.
Links from the comments