CppCon 2019: Matt Godbolt “Path Tracing Three Ways: A Study of C++ Style”
Channel:CppCon · Length:55:41 · Published:2019-10-11 · Views:77139
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
- How Python was Shaped by leaky Internals, Armin Ronacher, Flask framework · Видео с мероприятий {speach! · 49:55
- The Beauty of Bézier Curves · Freya Holmér · 24:25
- The Continuity of Splines · Freya Holmér · 1:13:50
- CppCon 2015: Andrei Alexandrescu “std::allocator...” · CppCon · 1:12:27
- Lexical Scanning in Go - Rob Pike · GoogleFOSSSydney · 51:17
- elevated by Rgba & TBC | 4k intro (FullHD 1080p demoscene demo) · Demoscene High-Quality Videos (Annikras) · 3:36
- Preventing the Collapse of Civilization / Jonathan Blow (Thekla, Inc) · DevGAMM · 1:02:41
- "Performance Matters" by Emery Berger · Strange Loop Conference · 42:15
- Painting a Character with Maths · Inigo Quilez · 24:46
- The Thirty Million Line Problem · Molly Rocket · 1:48:55
- CppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step” · CppCon · 59:33
- The Real Story Behind Wayland and X - Daniel Stone (linux.conf.au 2013) · Mladen Mijatov · 45:35
- RustConf 2018 - Closing Keynote - Using Rust For Game Development by Catherine West · Rust Programming Language · 42:29
- Erlang Factory 2014 - That's 'Billion' with a 'B': Scaling to the Next Level at WhatsApp · Erlang Solutions · 49:15
- A Deep Dive into Nanite Virtualized Geometry · SIGGRAPH Advances in Real-Time Rendering · 1:09:59
- How Crash Bandicoot Hacked The Original Playstation | War Stories | Ars Technica · Ars Technica · 31:37