Why would anyone do this?

I saw someone on twitter arguing that saving data in JSON was apparently not what Real™ developers do.

Obviously, I had to become a Real™ Developer too.

Turns out, the answer was binary.

Naturally, I had a brilliant idea:

“How hard could it be to make my own binary format?”

Surely it’s just a little wb . ( ˶ˆᗜˆ˵ )

It was, unfortunately, not just a wb.

I ended up building an entire binary schema language that can shrink JSON payloads by 80%.

What is binary packing?

Say we got some data

"hello world" then it would be translated in ascii to

104 101 108 108 111    32     119 111 114 108 100
 h   e   l   l   o   [SPACE]   w   o   r   l   d