Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> `int` that only uses 3 bits.

CBOR approximates this, since it has several different widths for integers.

> an older message that I can use as the initial message to delta encode/decode from.

General-purpose compression on the encoded stream would do something toward this goal, but some protocol buffers library implementations offer merge functions. The question is what semantics of "merge" you expect. For repeated fields do you want to append or clobber?



CBOR has different integer widths, yes, but 1/2/3/5/9 bytes is not particularly flexible.

And if someone is asking for exact bit sizes and deltas, they probably don't want a format that embeds every key in every message.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: