HackerTubewatch
Surprise me
Frame from CppCon 2017: Chandler Carruth “Going Nowhere Faster” Plays via YouTube's privacy-enhanced embed

CppCon 2017: Chandler Carruth “Going Nowhere Faster”

48 videos recommended on HN
YouTube
2 HN users recommended this talk3 months2017–2026 score 3.5
Years with an HN recommendation, 2007–2026

Recommended as the best presentation on how modern CPUs run code, and why speculative execution matters for performance.

Chandler Carruth shows how to squeeze more performance out of already-optimized C++ code, covering how the CPU executes it. The talk goes into pipelining, branch prediction and speculative execution using benchmarks.

“The best presentation I've seen about CPU performance related to pipelining, branch prediction, and speculative execution” (HN, 2026)

1 strong recommendations · 2 recommendations · 2 citations · Talks · advanced

5 Hacker News comments

From the HN archive; up to 20 kept per video, favoring different commenters. Recommendations first.

@inetknght Apr 2026 Strongly recommends
on HN thread Visualizing CPU Pipelining (2024)
The best presentation I've seen about CPU performance related to pipelining, branch prediction, and speculative execution was Chandler Carruth's "Going Nowhere Faster" presentation at CppCon 2017 [0]. I do recommend watching the whole presentation, but if you watch nothing else then just watch the 5 minutes or so from the linked timestamp. [0]: [this video]
Best presentation on pipelining, branch prediction and speculative execution
@inetknght Dec 2017 Recommends
on HN thread Intel i7 loop performance anomaly (2013)
Read more
Disclaimer: I am not an expert and have not measured. This is armchair theory. But, I would argue two things. First, the former appears to have at least one unaligned arithmetic: > 400538: mov 0x200b01(%rip),%rdx # 601040 <counter> ...while the latter's equivalent instruction is 4-byte aligned: > 40057d: mov 0x200abc(%rip),%rdx # 601040 <counter> So, I would argue that's the biggest source of _speedup_ in the second case. However, I'm really interested in whether that's true since I don't see a memory fence; so the memory should be in L0 cache for both cases; I have trouble believing that an unaligned access can be so much slower with the data in cache. As for the `callq` to `repz retq`, I would venture a guess that the CPU's able to identify that there are no data dependencies there and the data's never even stored; I'd argue that it probably never even gets executed because the instruction should fit in instruction cache and branch prediction cache and all. Arguably. Like I said, I'm not an expert. I'd say run it through Intel's code analyzer tool. [link] Tangential video worth watching: [this video] Edit: actually, thinking about it, it's not unaligned access , it's unaligned math . I don't think that should affect performance at all? Fun.
Talk on CPU performance and optimization

Citations, criticism and jokes

@jasode Jun 2018 Cites it
on HN thread DevTube: Searchable index of developer videos
>The YouTube inteface says "auto-generated" Ok, I never noticed that. I just read the captions and assumed obvious misspellings were auto-generated. For example in this video[1], the caption text is "L1D cache misses" but he's actually saying "L1-dcache misses" . (The Linux terminal screen he's showing does display "L1-dcache" .) Even though that video is not labeled as "auto-generated", I assumed it was because of the bad caption. Based on your info, I guess CppCon uses humans like Mechanical Turk or other non-domain typists to manually add the captions. [1] [this video]
@mathiasgredal Dec 2023 Cites it
on HN thread Ubuntu 24.04 LTS will enable frame pointers by default
Sure, but wouldn’t it make sense to extend the instruction set to allow the compiler to use these registers instead of reserving them for speculative / out-of-order execution? It was just a thought i had after watching a talk by a compiler guy: [this video]
Compiler talk prompting thoughts on registers and out-of-order execution

Video list and Hacker News comment labels from HackerTube (prompted by @karpathy), released under ODC-By 1.0, built on the open-index/hacker-news archive. Hacker News data is provided by Y Combinator; comments remain the work of their authors. Video titles, channel names and thumbnails belong to their creators and are shown via YouTube. HackerTube Watch is an unofficial edition. Data export of 2026-10-31.

Keyboard shortcuts

/
Search
j k
Next / previous video
r
Surprise me
l
Like (video page)
w
Watch later (video page)
?
This help
Esc
Close