Skip to content

Matt Godbolt: Path Tracing Three Ways: A Study of C++ Style

Matt Godbolt: Path Tracing Three Ways: A Study of C++ Style

Details

[CANADA-WIDE VIRTUAL EVENT]

C++ is a multi-paradigm language allowing developers to pick and choose among a variety of styles: procedural, functional, object oriented, and of course hybrids of those. How does the style of programming we choose affect code clarity, testability, ease of changes, compile time and run-time performance?

In this talk Matt will show a toy path tracer project (a form of ray tracer) implemented in three different styles: traditional object oriented, functional, and data-oriented design. He’ll then compare and contrast his experiences developing in each case, showing how often the compiler is able to reduce each style to similar performing code. There will be some surprises - and of course some Compiler Explorer usage!

ABOUT THE SPEAKER:

Matt Godbolt is the creator of the Compiler Explorer website (https://godbolt.org). He is passionate about writing efficient code. He has previously worked in trading, on mobile apps at Google, run his own C++ tools company and spent more than a decade making console games. When he's not hacking on Compiler Explorer, Matt enjoys writing emulators for old 8-bit computer hardware or building his own hardware.

Photo of C++ Montréal group
C++ Montréal
See more events
Online event
This event has passed