Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
renox
· 1mo ago · 0 comments
Zig disagree with you: they even made unsigned OV undefined (in unchecked mode)
Comments
[–]
eru
1mo ago
I guess yet another reason not to bother with Zig.
[–]
renox
OP
1mo ago
Or that reasonable people may disagree on when to make signed/unsigned overflow undefined: Zig didn't only make it an UB on unchecked build they also trigger an "abort on overflow" in checked build.
[–]
eru
1mo ago
Make it implementation defined, if you must. But undefined is pretty sad.
[–]
renox
OP
1mo ago
Nobody forces you to use unchecked build! And some people want maximum performances, I've read that bound checking can hurt SIMDification..