4 ms·
While you are right about it not being stable, and about packed struct being a bit wonky, I've been using Zig a lot for some hobby projects and rarely run into
by chip2n 4y ago
While you are right about it not being stable, and about packed struct being a bit wonky, I've been using Zig a lot for some hobby projects and rarely run into problems. APIs are in flux of course, but that usually only takes minutes to fix as long as you keep the compiler reasonably up to date. Maybe there's a fix required every month or so, but it seems that most things are settling down. YMMV, I mostly use the basic stuff and sprinkle some comptime here and there.
- AnIdiotOnTheNet 4y ago> packed struct being a bit wonky That's putting it a bit mildly from what I recall the last time I used them. They work on LE if you don't color too far outside the lines, but otherwise I would describe their state as "almost completely broken". Field ordering being endian dependent, while historically how things are done with bitfields, seems questionable to me anyways.
- AndyKelley 4y agoIssues with packed structs are finally resolved in 0.10.0: https://ziglang.org/download/0.10.0/release-notes.html#Packed-Structs https://ziglang.org/download/0.10.0/release-notes.html#Packe...