5 ms·
Also Zig's memory alignment in the type system is great for doing low-level I/O. Coming from C, I find that Zig's memory alignment options are easier and more
by _vvhw 5y ago
Also Zig's memory alignment in the type system is great for doing low-level I/O.
Coming from C, I find that Zig's memory alignment options are easier and more powerful.
- dundarious 5y agoTotally agree. Having std.os.mmap enforce correct page_size alignment for the base pointer has saved me once already (using mmap and memfd for a fixed size circular buffer where you can always provide contiguous bytes for the full size available, without any memmove).