Skip to content
HHackerTube.videoSurprise me

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

CppCon 2019: Matt Godbolt “Path Tracing Three Ways: A Study of C++ Style” on HackerTube: recommended by 1 Hacker News commenter across 1 month, 2019–2025.

CppCon

talk · intermediate · evergreen

Open on YouTube

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.

Why Hacker News recommends it

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

people recommended it
1
separate months
1
strong recommendations
1
discussed on HN
2019–2025
“On OOP versus more cache friendly approaches and branch prediction this talk from CPPCon 2019 is great”
— meheleventyone, Oct 2019, in “Mispredicted branches can multiply your running times”

What HN commenters said

3 Hacker News comments link this video. Each one links back to its thread.

meheleventyoneOct 2019Strongly recommends

> 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.

in “Mispredicted branches can multiply your running times” · View on HN

rdc12Dec 2025Cites it

Matt Godbolt's talk on ray tracers, shows how effective that change can be. Think it was that talk anyway. ▶ this video

in “You can't fool the optimizer” · View on HN

slavik81Jul 2021Cites it

Matt Godbolt gave an example of a significant performance hit caused by unnecessary short-circuiting in his CppCon 2019 talk[1]. EDIT: Deleted tangent. [1]: ▶ this video

in “Google broke a conditional statement that verifies passwords on Chrome OS” · View on HN

Topics & tags