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

Channel:CppCon · Length:55:41 · Published:2019-10-11 · Views:77139

Watch on YouTube

Summary

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 HN recommends it

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

On OOP versus more cache friendly approaches and branch prediction this talk from CPPCon 2019 is great — HN, 2019

C, C++, Rust, Go & systems languages · Software performance & optimization · Computer graphics & rendering

Subtitles (excerpt)

good afternoon everyone is everyone having a good conference so far it's amazing isn't it absolutely amazing well thank you for being here thank you for coming to my talk I wasn't expecting to be in quite as big room as this one so I was expecting just to have a few people to talk to him have a like nice intimate chat about something that I love but thank you so today I'm gonna be talking about path tracing in three ways a study of c++ style this was an idea I had had a six or seven months ago about a talk that I could give here and let me tell you a story so often when people contact me they will ask how do you learn programming languages I've seen you do C++ I've seen you do low-level stuff how should I learn this this kind of thing and my sort of go-to answer for this has always been find something that's relatively short that super cool has like some instant feedback and write it in that language I learn by doing I'm sure many of you do too right you can read as many books as you like but until you actually sort of sit down and start typing on a keyboard and experience the usually the horrible compiler errors and things then you don't really get a feel for the language and how everything fits

On Hacker News

> 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 inter… — meheleventyone, 2019-10
Matt Godbolt's talk on ray tracers, shows how effective that change can be. Think it was that talk anyway. [VIDEO] — rdc12, 2025-12
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]: [VIDEO] — slavik81, 2021-07

Related videos