2 ms·
> Some upcoming languages like Zig and Jai have features to allow you to easily switch from array-of-structures to structure-of-arrays at writing time. no need
by jcelerier 5y ago
> Some upcoming languages like Zig and Jai have features to allow you to easily switch from array-of-structures to structure-of-arrays at writing time.
no need to reach for upcoming languages, it's doable directly in C++: https://github.com/celtera/ahsohtoa https://github.com/celtera/ahsohtoa =)