News for hackers. Stuff that matters.
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"?
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.
Re:Why Zig over C for Systems Programming by 0c3ca83 on Friday November 13, 2026 @05:05PM (#50490608)
Good question. How much of a slowdown are you willing to accept on deployed systems?