Top all-time · #19334
// info
Personal blog · slashslash.infoprogramming
// info is a personal blog at slashslash.info about programming. Since 2013, 4 different Hacker News readers have linked it 4 times, most often “Undefined Behavior and Apple’s Secure Coding Guide”. No feed was found, so read it on the site itself.
Too few sampled comments (1) to say how often HN recommends it.?
Why HN links it
HN readers link this post on undefined behaviour from signed integer overflow in C and C++, and how compiler optimization levels expose it. The one comment cites an Apple example from it.
Summarised by Claude from a sample of 1 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
comments on c++ and issues of interest to c++ programmers
Most-linked posts?
- Undefined Behavior and Apple’s Secure Coding Guide2 people · 2 mentions · first linked 2014-02-27
What Hacker News says?
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).
Comment linking /2014/02/undefined-behavior-and-apples-secure-coding-guide/
on “Should I Use Signed or Unsigned Ints?”Submitted A Foolish Consistency as a story · 1 points
HN discussionSubmitted Undefined Behavior and Apple’s Secure Coding Guide as a story · 1 points
HN discussionSubmitted Ode to a Flat Set as a story · 1 points
HN discussion