2 ms·
Disclaimer: I don't really use Zig (primarily a Rust dev) but I do think it's quite cool. If you're willing to dive right into it, I'd first read a bit about t
by skavi 7mo ago
Disclaimer: I don't really use Zig (primarily a Rust dev) but I do think it's quite cool.
If you're willing to dive right into it, I'd first read a bit about the comptime system [0] then have a go at reading the source for `MultiArrayList` [1], a container which internally stores elements in SoA format.
At least, that was what got me interested.
[0]: https://ziglang.org/documentation/master/#comptime https://ziglang.org/documentation/master/#comptime
[1]: https://codeberg.org/ziglang/zig/src/branch/master/lib/std/multi_array_list.zig https://codeberg.org/ziglang/zig/src/branch/master/lib/std/m...