Even in high-level languages, it can pay off to understand how CPUs work.
In about half an hour today (no AI), I hacked together a naive #ruby SoA class, which introspects on a `Data` or `Struct` class and generates an appropriate SoA wrapper from it.
The API feels good, and the speedup is what you would expect from the sort of calculation that benefits from this sort of thing.
2 media