Developer builds a binary schema language to shrink JSON by 80%
A blog post walking through a hand-built binary serialization format spreads across Hacker News, Reddit, and Mastodon.
What to know
- A blog post explains, step by step, how the author designed a custom binary schema language to replace JSON, using type-tagged headers, varint length encoding, and packed field numbers.
- The design claims roughly an 80% reduction in payload size compared to JSON by moving type information into a schema rather than storing it per-value.
- The post spread modestly across Hacker News (two separate submissions), Reddit, and Mastodon, with low but nonzero engagement (top HN score of 5, 2 comments).
hereticpleb (blog author) Author of the blog post and creator of the binary schema language
How it unfolded 4 developments, newest first · click a bar or a number to jump articlesposts
-
4
Post is shared on Mastodon
User hkrn@mstdn.social links to the article and the HN comments thread, extending the post's spread beyond Hacker News and Reddit.
-
H
Packing Binary Is Fun L: https:// hereticpleb.vercel.app/blog/pa cking-binary-is-fun-actually C: https:// news.ycombinator.com/item?id=4 9872541 posted on 2026.09.27 at 21:33:51 (c=0, p=3)
-
-
3
Second Hacker News submission reaches the front page
A re-submission by BurnerBurner under the shortened title 'Packing Binary Is Fun' accumulates 5 points and 2 comments and appears on the HN Frontpage RSS feed.
“LOOK AT THAT! our 1 byte number tells us both what type it is and what its field number is!”
— hereticpleb (blog author), blog author · source -
2
Post is submitted to Hacker News by signa11
The same article is posted to Hacker News under the title 'Packing Binary Is Fun, Actually', gathering a small amount of traction.
“If the continuation bit is 1, there’s another header byte. If it’s 0, the header is done.”
— hereticpleb (blog author), blog author · source -
1 outlet Packing Binary Is Fun
first by HN Frontpage, 1d ago
-
-
1
Author publishes blog post on building a binary schema language
The post walks through designing a binary format with type headers, varint-encoded lengths, and field-number tagging to compress JSON-style data, and it is submitted to r/... by GenericAHHyoutuber.
“I ended up building an entire binary schema language that can shrink JSON payloads by 80%.”
— hereticpleb (blog author)