3 ms·
Macros or compile-time rewriting of structures makes this possible in languages that support them, Rust has several which avoid baking in assumptions from the l
by AaronFriel 6y ago
Macros or compile-time rewriting of structures makes this possible in languages that support them, Rust has several which avoid baking in assumptions from the library as part of the standard and the crates are a proving ground of the concept. I doubt any of them will ever become part of std, since structure of arrays is somewhat esoteric, but it's a lot like (read: is) columnar data storage, so I could see some common traits being standardized.
Soak - https://docs.rs/soak/0.2.0/soak/ https://docs.rs/soak/0.2.0/soak/
soa-derive - https://docs.rs/soa_derive/0.4.0/soa_derive/ https://docs.rs/soa_derive/0.4.0/soa_derive/
legion and specs from amethyst, see: https://csherratt.github.io/blog/posts/specs-and-legion/ https://csherratt.github.io/blog/posts/specs-and-legion/
and many more! https://arewegameyet.rs/ecosystem/ecs/ https://arewegameyet.rs/ecosystem/ecs/