Data-Oriented Demo: SOA, composition
Channel:Jonathan Blow · Length:1:32:47 · Published:2015-01-21 · Views:201856
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
- How Python was Shaped by leaky Internals, Armin Ronacher, Flask framework · Видео с мероприятий {speach! · 49:55
- RailsConf 2014 - All the Little Things by Sandi Metz · Confreaks · 38:47
- "Simple Made Easy" - Rich Hickey (2011) · Strange Loop Conference · 1:01:38
- "Making Impossible States Impossible" by Richard Feldman · elm-conf · 25:06
- CppCon 2015: Andrei Alexandrescu “std::allocator...” · CppCon · 1:12:27
- How To Design A Good API and Why it Matters · Google TechTalks · 1:00:19
- The Value of Values with Rich Hickey · InfoQ · 31:43
- Why Isn't Functional Programming the Norm? – Richard Feldman · Metosin · 46:09
- Overwatch Gameplay Architecture and Netcode · GDC Festival of Gaming · 1:04:03
- Maybe Not - Rich Hickey · ClojureTV · 1:03:28
- Solving Problems the Clojure Way - Rafal Dittwald · Clojure/north · 1:02:26
- Lecture 1A: Overview and Introduction to Lisp · MIT OpenCourseWare · 1:12:55
- Preventing the Collapse of Civilization / Jonathan Blow (Thekla, Inc) · DevGAMM · 1:02:41
- Conway's Game Of Life in APL · Dyalog · 7:47
- "Performance Matters" by Emery Berger · Strange Loop Conference · 42:15
- Lecture 1A | MIT 6.001 Structure and Interpretation, 1986 · MIT OpenCourseWare · 1:12:55