CppCon 2018: Stoyan Nikolov “OOP Is Dead, Long Live Data-oriented Design”

Channel:CppCon · Length:1:00:46 · Published:2018-10-26 · Views:272202

Watch on YouTube

Summary

A CppCon 2018 talk arguing that OOP has failed to deliver on reuse and performance, and presenting data-oriented design for C++ with practical worked examples from real systems.

Why HN recommends it

HN cites it as a concrete, worked example of data-oriented design and as an alternative to OOP in performance-sensitive code.

a more recent video on it from CppCon 2018 where the presenter goes over a specific worked example. — HN, 2019

C, C++, Rust, Go & systems languages · Software architecture & design · Software performance & optimization

Subtitles (excerpt)

- Good morning. My name is Stoyan and first of all, thank you for waking up early to come to this talk. Today we'll be chatting about data-oriented design and I decided to do this talk because, when looking at all the resources, all the talks, all the blocks on data-oriented design, I was unable to find a good example of people showing a real-world production system made with data-oriented design, comparing it with objected-oriented programming and outside of games. So, I've been in the video games industry for about 10 years now and I've been doing games, I've been doing mostly, however, game technology. I work at a company called Coherent Labs where we create the technology for games, so it's very likely that if you're playing and if you're a gamer, you machine has executed some of the code we'll be looking at. For the past six and a half years, we've been working on products based on Chromium, WebKit, and now our in-house proprietary game UI and the browser engine. If you're not familiar with the terms, Chromium is the open-source project that is at the heart of the Chrome browser, of Slack, of Skype, and many other applications that are probably running on your machines, and WebKit is the original project that the core

On Hacker News

Glad to see some agreement there. I'm interested in building an ECS-based approach for a UI system at some point. The Yoga layout engine (implements flexbox -- [LINK] ) seems to actually be pretty amenable to just incorporating as a `Layout` or `Flex` component, then you could have components for platform-specific renderings (eg. `iOSTextInput`, `AndroidTextInput`, `DOMTextInput` in wasm, ...) th… — nikki93, 2020-08
Just adding a more recent video on it from CppCon 2018 where the presenter goes over a specific worked example. [VIDEO] — michael_j_ward, 2019-12
That's a very good point. It might be question of high versus low level. From a video I watched today (the rest of the video is worth watching, too, but the following stand-alone quote is apropos): "Polymorphism and interfaces have to be kept under control. I don't believe that their role is in a very low level system like interpolating a couple of numbers in the animations, but they have their p… — phaedrus, 2018-10
There's been a few talks: CppCon 2014: Mike Acton "Data-Oriented Design and C++": [LINK] CppCon 2018: Stoyan Nikolov “OOP Is Dead, Long Live Data-oriented Design”: [VIDEO] Building a Data-Oriented Future - Mike Acton [2019]: [LINK] And a blog/book has been created: [LINK] — jfpardy, 2021-06
Some UI rendering engines for games do something like this, eg. [LINK] -- talk by one of the devs of that at [VIDEO] — nikki93, 2020-08

Related videos