Remix.run Logo
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?

alex7o 3 hours ago | parent [-]

He is talking about jai the programing language from Jonathan Blow, which is quite cool but there is no way to access it.

tlb 2 hours ago | parent | prev [-]

There's a package to do this in Julia: https://juliaarrays.github.io/StructArrays.jl/stable/