Re:Why Zig over C for Systems Programming
by metaltyphoon on Friday November 13, 2026 @12:42PM
(#50486983)
If this is such a good default, why make me type `-fsanatize=address? Why isn't this the default when not doing "release mode"?
[ Parent
| on HN ]
Re:Why Zig over C for Systems Programming
by woodruffw on Friday November 13, 2026 @12:53PM
(#50487150)
It adds nontrivial runtime cost. It’s also not a perfect mitigation (there are plenty of unsound patterns that ASan, UBSan, and TSan won’t catch).
Re:Why Zig over C for Systems Programming
by William_BB on Friday November 13, 2026 @12:55PM
(#50487183)
The obvious answer is that I don't want to pay for these checks at runtime and can catch most of these bugs at test time. There are definitely use cases where that's acceptable.