Enabling data-oriented design

Darren Fielding via Digitalmars-d digitalmars-d at puremagic.com
Sun Dec 18 09:16:50 PST 2016


On Sunday, 18 December 2016 at 16:06:38 UTC, Joakim wrote:
> On Sunday, 18 December 2016 at 14:58:53 UTC, Stefan Koch wrote:
>> On Sunday, 18 December 2016 at 14:22:29 UTC, Joakim wrote:
>>> [...]
>
> Hmm, looks like I pasted a link to the wrong CppCon video, 
> here's the one on data-oriented design:
>
> https://youtube.com/watch?v=rX0ItVEVjHc
>
>>> [...]
>>
>> I would not be too sure that this is something the language 
>> can help with.
>> It is more a question of the right tools.
>> And In theory features like mixins, introspection and property 
>> functions should make it possible to profile your 
>> memory-access patterns in a nice way.
>
> One of the arguments for DOD in the WP link and elsewhere is 
> that typically OOP-heavy code, as you see in much game 
> programming, is not conducive to this type of design.  To the 
> extent someone is using D's OOP features heavily, they will run 
> into this too.  I would imagine ranges are very conducive to 
> the DOD approach, so it's not like D doesn't support it.  The 
> question is whether we can support this design trend more.

This is something I'm interested in, too.  If you haven't seen 
them already, Jonathan Blow has videos showing his development of 
Jai, a language focused on DOD.  I would love to see some support 
or tutorials of DOD in D.


More information about the Digitalmars-d mailing list