Skip to content

Data Oriented Design? #2078

@dzmitry-lahoda

Description

@dzmitry-lahoda

Any special features to allow to use Zig in data oriented stuff?

In short, as I understand this,

If I have struct A with Foo, and B with Bar.
Than if I have C which references A and B then C has Foo and Bar in code (but still references other memory allocated for A and B).
From code perspective, C may hold-have Foo and Bar directly, or reference A and B. Code to get Foo and Bar from C is same in any case.

Like Data-Oriented Demo: SOA, composition or via C++ templates.

I am asking it because Zig is very good, at least looks like that. And build in DOD seems suits it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionNo questions on the issue tracker, please.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions