Data-Oriented Demo: SOA, composition

Channel:Jonathan Blow · Length:1:32:47 · Published:2015-01-21 · Views:201856

Watch on YouTube

Summary

A live-coded demo by Jonathan Blow showing how to get object-system-style expressiveness in a data-oriented way, covering structure-of-arrays layouts and composition. It shows features of his Jai language that make programs fast.

Why HN recommends it

HN points to it as the practical demonstration of data-oriented design, including structure packing and switching between AOS and SOA.

He gives a fantastic walkthrough on his approach to structure packing in the data-oriented demo[1]. — HN, 2015

Programming language design · Software architecture & design · Software performance & optimization

Subtitles (excerpt)

So, let's talk today about Well, the There are a lot of things to talk about. Um the the sort of umbrella that they all fall under is what is a better way than C++ gives us to structure sort of the higher level expression in a program, right? So, C++ is an object-oriented language according to most people except the guy who coined the term object-oriented, right? But, you know, that means certain things. There's a certain set of dogma about how you structure programs that C++ and then other languages to a certain extent like D or Rust um have inherited so to speak. Um and these are ideas about how to create a program that are causing problems. Especially, the bigger your game is, the more problems they've probably caused. And I want to talk about why this is a problem um and what exactly the problem is and then we'll take a look at how we might approach ways to solve it. So, here on the screen uh I have some very simple uh example code from C++. Uh this sort of shows a way you might organize game objects uh in a game. This is a simplified version of what we do in The Witness, but it represents what a lot of games would do. You know, you want to have some representation of the objects in the world that you

On Hacker News

He gives a fantastic walkthrough on his approach to structure packing in the data-oriented demo[1]. [1] [VIDEO] — tomyws, 2015-02
Here is the demo video of the stuff zero_iq is talking about: [VIDEO] Basically right on point with what the GP is saying. — clucas, 2020-08
> I'm not aware of any general-purpose language where this is an option to any significant degree (silent AOS-to-SOA, hot-vs-cold data segregation, tree clustering, etc...) Not yet, of course, because it hasn't been released, but Jonathan Blow's Jai language offers transparent switching between AOS and SOA, as well as many other features that make it easy to explore the 'optimization space' of a … — taliesinb, 2015-04
I think you're referring to confirmation bias which is related but not quite the same. Never the less I understand what you're getting at. I took it to mean that the kinds of problems a programmer encounters is not sufficiently random to properly determine the usefulness of a given language or "paradigm." Which may keep people from switching to new, better tools (or from trying them out at all). … — agentultra, 2015-02

Related videos