logoalt Hacker News

giovannibonetti • yesterday at 11:56 PM • 1 reply • view on HN

Where does the language stand in the array-of-structs vs struct-of-arrays choices? Does it offer an annotation to choose that like in Zig?


Replies

Aardappel • today at 5:44 AM

It does not currently offer automatic AOS -> SOA transform, you'd have to do that yourself. I did look into it, but doing it automatically is not a great fit with how Goose tracks arrays. Maybe can be reconsidered at some point.