| ▲ | theandrewbailey 3 hours ago | |||||||
Maybe someone can write an OO language where arrays of structs are automatically stored as structs of arrays. mild /s | ||||||||
| ▲ | fp64 3 hours ago | parent | next [-] | |||||||
Odin has some helpers, was one of the more interesting features I found, but never tried. Not sure if you want to consider Odin OO, but well https://odin-lang.org/docs/overview/#soa-struct-arrays | ||||||||
| ▲ | Mizza 3 hours ago | parent | prev | next [-] | |||||||
Are you talking about Zig's MultiArrayList? | ||||||||
| ||||||||
| ▲ | tlb 2 hours ago | parent | prev [-] | |||||||
There's a package to do this in Julia: https://juliaarrays.github.io/StructArrays.jl/stable/ | ||||||||