Zig's comptime code execution

a generic container class (similar to vector in C++ or List in C#). But! With a twist!

It stores structs in “column major” order in memory (e.g., if a struct had two fields A and B, then in-memory layout would be A…AB…B), and you can idiomatically and efficiently get a a slice of the values of each column. - HN

Written on March 7, 2021, Last update on March 7, 2021
zig lang vector data