HackerTube

THE VIDEO SHELF · undefined behavior in C++

CppCon 2016: Chandler Carruth “Garbage In, Garbage Out: Arguing about Undefined Behavior..."

Chandler Carruth's CppCon 2016 talk tries to defuse the heated debate over undefined behavior in C and C++. He explains from the compiler writer's perspective why UB exists and how it enables optimization.

Why HN readers recommended it

HN points to it whenever undefined behavior comes up, as the best explanation of the reasoning behind UB, though some dispute its framing.

This is a summary from the source dataset, not an endorsement by Hacker News or the video creator.

Video & recommendation details

Creator / channel
CppCon
Topic
undefined behavior in C++
Format
talk
Level
advanced
HN recommenders in dataset
4
HN mentions in dataset
14
Recommendation years in dataset
2016–2026

These counts and years describe the included Hacker News records; they are not YouTube views or the video’s publication date.

From the original HN conversations

Excerpts from the recorded comments. Follow each source for the full comment and surrounding discussion.

  • The generally recommended thing for catching & fixing this is: [LINK] CppCon has also had a lot of great talks on UB and why it is what it is, such as [VIDEO]

    kllrnohj on Hacker News · 2018-03
    In A Usable C++ Dialect That Is Safe Against Memory Corruption
  • Chandler Carruth's talk on the subject was really useful for my own understanding of the reasoning behind UB: [VIDEO]

    lyricaljoke on Hacker News · 2018-05
    In Depressing and faintly terrifying days for the C standard [pdf]
  • Actually I discourage my colleague to use unsigned especially because they can overflow. The problem with overflow is that most of the time it is a program bug if there is an overflow that wasn't intended. Using signed arithmetic means that you can actually trap …

    Joky on Hacker News · 2018-11
    In Trip report: Fall ISO C++ standards meeting

Summaries, classifications and recommendation records are from the HackerTube source dataset. Read about this library and its limitations.