2 ms·
I've got a thing for packed structs (network encodings tend to be zealous to use weird bit widths and packings to save a byte on the header) but unfortunately f
by zamadatix 4y ago
I've got a thing for packed structs (network encodings tend to be zealous to use weird bit widths and packings to save a byte on the header) but unfortunately for me they seem to be one of the most troublesome things in the language and every time I return to try them out it seems like there is always more to fix - though I usually get farther and farther in each round. The self-hosted compiler seems to have calmed things with it but there is a flow of mis-compilations still and they tend to hang around for a couple of releases each. For a good read of how weird these can be here is a bug report from last month https://github.com/ziglang/zig/issues/13480 https://github.com/ziglang/zig/issues/13480
- throwawaymaths 4y agoyeah, that makes sense. packed structs are the place where I had trouble in the past.