News for hackers. Stuff that matters.
Re:Data-oriented design or why you might shoot yourself in t... by mytailorisrich on Monday June 28, 2021 @11:27AM (#27663151)
The point I'm trying to make is that OO design principles are one thing, how these are implemented by various systems or languages is quite another.

OOP does not kill cache locality for the simple reason that these are orthogonal concepts.

> split the data according to functions that use it not according to metaphysical Classes where it belongs

Well, of course and as mentioned, picking the best model, and thus the best object representation, for the job is paramount. I read "split the data according to functions that use it" as "come up with objects that make the most sense for what you're trying to achieve", not "forget about OO design".

There are no comments on this comment yet.