IssueRaiser

Because properly handling overflow if you're using signed values involves UB, it's super hard to get it right.

Because properly handling overflow if you're using signed values involves UB, it's super hard to get it right. Even Apple has struggled with it: http://www.slashslash.info/2014/02/undefined-behavior-and-ap... If you get it wrong you can also see your program's behavior change with the compiler optimization level, which is incredibly frustrating (and causes a lot of "the compiler is buggy!" beliefs).

Posted by helmut_hed on Aug 2, 2015, 4:09 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.5,000 issues0 comments

ux (Software)

Because properly handling overflow if you're using signed values involves UB, it's super hard to get it right.

helmut_hedAug 2, 2015, 4:09 PM

Because properly handling overflow if you're using signed values involves UB, it's super hard to get it right. Even Apple has struggled with it: http://www.slashslash.info/2014/02/undefined-behavior-and-ap... If you get it wrong you can also see your program's behavior change with the compiler optimization level, which is incredibly frustrating (and causes a lot of "the compiler is buggy!" beliefs).

Comments (0)

No comments yet. Start the discussion.

Comment on this issue