Hacker News new | ask | show | jobs
by MaxBarraclough 90 days ago
Jonathan Blow's own unreleased Jai programming language has a feature to make it trivial to switch between array-of-structs and struct-of-arrays.

From a quick search, it seems HackerNews's own jcelerier has put together a C++ library for doing this. https://github.com/celtera/ahsohtoa

1 comments

Zig also makes this trivial
I believe you. Can you provide a simple example? I would be helpful for me to understand.