the.bay.news

Possible auto layout inlining

Ziggit
Possible auto layout inlining
I’ve been working on a lightweight database/kernel of sorts, and I’ve really come to enjoy the semantics of payload captures in switch statements on tagged unions. The only thing that makes me a bit sad is that I don’t think Zig supports like auto layout awareness outside the type’s scope so Cmd goes from ideal 16 bytes to 20, and Resp goes from ideal 8 bytes to 12. I know that if the compiler tried to do this without any help, a new child struct that contains the parent would create a dependen...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.