HackerTubewatch
Surprise me
Frame from CppCon 2019: Matt Godbolt “Path Tracing Three Ways: A Study of C++ Style” Plays via YouTube's privacy-enhanced embed

CppCon 2019: Matt Godbolt “Path Tracing Three Ways: A Study of C++ Style”

48 videos recommended on HN
YouTube
1 HN user recommended this talk1 month2019–2025 score 1.5
Years with an HN recommendation, 2007–2026

HN points to it as a concrete demonstration of object-oriented versus cache-friendly design and the performance effects of branch misprediction.

Matt Godbolt builds a toy path tracer in C++ in three different styles and compares them on clarity, testability, compile time and run-time performance. The talk was given at CppCon 2019.

“On OOP versus more cache friendly approaches and branch prediction this talk from CPPCon 2019 is great” (HN, 2019)

1 strong recommendations · 2 citations · Talks · intermediate

3 Hacker News comments

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

@meheleventyone Oct 2019 Strongly recommends
on HN thread Mispredicted branches can multiply your running times
Read more
> This is one of those things that is completely lost on someone who has never written in a low level language. I automatically assume JavaScript developers to be completely oblivious to this entire class of software development knowledge. This is a shame because not only are there lots of developers who write JS that have low-level backgrounds there are also a lot who haven't and are still interested. It seems rather snobby to jump in and write off a bunch of people because of the language they use on the assumption that they use the language without being aware of the implications. On OOP versus more cache friendly approaches and branch prediction this talk from CPPCon 2019 is great: [this video] The interesting result is that although the DoD approach is eventually faster a branch misprediction causes havoc until uncovered.
Compares OOP and data-oriented design, with branch misprediction effects.

Citations, criticism and jokes

@rdc12 Dec 2025 Cites it
on HN thread You can't fool the optimizer
Matt Godbolt's talk on ray tracers, shows how effective that change can be. Think it was that talk anyway. [this video]
Shows how effective such a change can be.

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