Can you tell me more about how what you want relates to capnproto? Reinventing this properly would be a bunch of work, since there's stuff like padding and alignment issues. Capnproto has many features we wouldn't need, but maybe a somewhat simple scheme definition for hsdt could be sufficient for your use case.