This post is basically showing what was missing from the other one: how, in practice, compime can help solve problems without going down metaprogramming rabbit holes.
Zig’s comptime is really interesting — it seems like a nicely orthogonal tool that gets put to different uses, instead of having separate mechanisms. I especially like the idea of providing generics via comptime parameters. I need to catch up on Zig again.
This post is basically showing what was missing from the other one: how, in practice, compime can help solve problems without going down metaprogramming rabbit holes.
Zig’s comptime is really interesting — it seems like a nicely orthogonal tool that gets put to different uses, instead of having separate mechanisms. I especially like the idea of providing generics via comptime parameters. I need to catch up on Zig again.
This article is related to https://lobste.rs/s/eppfav/why_i_rewrote_my_rust_keyboard_firmware