Data-Oriented Demo: SOA, composition

Jonathan Blow · 200K views · 2015 · 1:32:47

Open on YouTube

Software architecture & designProgramming language designSoftware performance & optimizationdemo

Why Hacker News recommends it

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

What it is

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.

Recommended by 1 HN commenters across 1 different months, 2015 to 2020.

What Hacker News said

Strong rec tomyws · 2015-02 · on “The Lost Art of C Structure Packing”

He gives a fantastic walkthrough on his approach to structure packing in the data-oriented demo[1]. [1] [this video]

Cites agentultra · 2015-02 · on “An introduction to NoFlo and flow-based programming”

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). The data-oriented design thing is interesting and something I've heard come and go over the years. Check out: [LINK] and [this video] A video demonstration of Jai; a new compiler from Jonathan Blow designed around this paradigm. Cheers!

Cites taliesinb · 2015-04 · on “The death of optimizing compilers [pdf]”

> 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 program manually. [this video] (for those who don't know, Jonathan Blow was the creator of Braid)

Cites clucas · 2020-08 · on “Handles Are the Better Pointers (2018)”

Here is the demo video of the stuff zero_iq is talking about: [this video] Basically right on point with what the GP is saying.