Live data from Hacker News

The Unreasonable Effectiveness of Simple Binary Encoding (SBE)

yafetn.github.io

1–10 of 11 posts

Re: The Unreasonable Effectiveness of Simple Binary Encoding (SBE)

#2
It's always worth noting that JSON compresses the hell out of repetitive key names, just as it did for the even more repetitive XML. It's nicer to have a bit packing format that means you get even better space usage, and you skip a compression step, but it works for a huge number of cases.

Re: The Unreasonable Effectiveness of Simple Binary Encoding (SBE)

#4
post #3

What is unreasonable here?

Yeah. The title is clickbait and the post describes what every other binary protocol used to be like before JSON took over.

Honestly I can't see what the point of the post is. If you create a protocol that is optimized for bytes, you will get a protocol that is optimized for bytes. It's a trivial tautology.

Re: The Unreasonable Effectiveness of Simple Binary Encoding (SBE)

#6
I've used SBE and Aeron, can recommend.

The difference with SBE vs JSON is there's no need to serialize/deserialize anything. In SBE you literally just write in the value and read the value. You aren't turning bytes into text, which takes time and might require intermediate state (depends on what you're implementing).

It's almost like a non-format, because what could be simpler?

Re: The Unreasonable Effectiveness of Simple Binary Encoding (SBE)

#7

I've used SBE and Aeron, can recommend. The difference with SBE vs JSON is there's no need to serialize/deserialize anything. In SBE you literally just write in the value and read the value. You aren't turning bytes into text, which takes time and might require intermediate state (depends on what you're implementing). It's almost like a non-format, because what could be simpler?

> It's almost like a non-format, because what could be simpler?

Something that specifies endianness and field types?

Re: The Unreasonable Effectiveness of Simple Binary Encoding (SBE)

#10

I've used SBE and Aeron, can recommend. The difference with SBE vs JSON is there's no need to serialize/deserialize anything. In SBE you literally just write in the value and read the value. You aren't turning bytes into text, which takes time and might require intermediate state (depends on what you're implementing). It's almost like a non-format, because what could be simpler?

> It's almost like a non-format, because what could be simpler? Something that specifies endianness and field types?

Yeah I'm not saying there's nothing there at all, just that it's minimal.
Post reply on HN