News for hackers. Stuff that matters.
Re:An Introduction to Data Oriented Design with Rust by adamnemecek on Thursday September 17, 2020 @02:26PM (#24508219)
And don't get me started once you have some hierarchies. Sometimes a object changes and you need to notify a parent of this change. OOP really sucks at this.
Re:An Introduction to Data Oriented Design with Rust by nikki93 on Thursday September 17, 2020 @03:30PM (#24508911)
It seems like in these cases often at least in frame-based systems like games it makes sense to sort your data in a parent->child partial order, then visit in that (or reverse depending on which algo) order propagating changes, then do another pass later and so on. It's just nice that you can think about these things once you're in DoD-land.