Hacker News

Subscribe to Hacker News feed
Hacker News RSS
Updated: 5 min 11 sec ago

Show HN: Bytery – a binary JSON protocol ~10x faster and ~10x smaller

Mon, 05/25/2026 - 1:26am

I created a JSON codec called Bytery, which is about 10x faster and 10x smaller for storage and transport.

It is not just an implementation; it is a full protocol that can be implemented in any language.

The major gains in performance and size come from highly compact binary data formats: packing numbers into fewer bytes, avoiding repeated strings and schemas, and applying other low-level optimizations.

Here are just a few optimizations I implemented:

Encoding integers: - JSON represents integers (and everything else) as textual tokens, depending on parsers, digit decoding such as char - 48, and delimiters. - Bytery represents integers as LUINT: a single byte, if value is up to 246. Values 247..254 indicate that the following additional 1..8 bytes should be used to build a big-endian integer, and 255 means null.

Encoding strings: - JSON represents strings with delimiters, escapes, and a pair of quotes, and it costs CPU to scan until the closing quote while also handling escape sequences. - Bytery represents strings as a pair [length:LUINT,data]. It reads the length as a LUINT and then reads exactly that amount of bytes. Fast, no parsing, no delimiters, no quote scanning, no escape processing.

* These are just a few examples. There are a lot more, like string cache table, schema cache, field types, etc. * The full spec.md has around 4k lines of specification, all written with care.

The protocol is fully lossless and can handle any standalone JSON object without requiring prior knowledge of schemas or data structures.

Bytery can also transport files in native binary format, without converting them to Base64 and paying the ~30% size overhead.

Bytery can also be combined with GZIP and other post-processing tools to make the payload even smaller.

My focus here is the protocol and wire format itself.

The project is free to use. My goal is to free the internet from the heavy overhead cost of parsing, storing, and transporting JSON through the wire, while allowing data to be decoded at high speed on the client.

Comments URL: https://news.ycombinator.com/item?id=48263675

Points: 1

# Comments: 0

Categories: Hacker News

Becalled

Mon, 05/25/2026 - 1:24am

Article URL: https://becalled.eu

Comments URL: https://news.ycombinator.com/item?id=48263657

Points: 1

# Comments: 0

Categories: Hacker News

C array types are weird

Mon, 05/25/2026 - 1:05am
Categories: Hacker News

Show HN: Antimemetic message that escapes screen capture

Mon, 05/25/2026 - 12:54am

The message is clearly visible, but it cannot be screen captured. (Or just pause the effect with click/tap.)

I think this TV static effect is more realistic than others on the web:

- Wide CRT "pixel" aspect ratio

- Larger "grains" (to match low CRT resolution)

- CRT "scan lines" (Toggle with 'C' key)

When I attempted this effect many years ago, it didn't seem possible without GPU shaders. With advances in hardware/JS performance, the CPU can easily blast a higher resolution (2560x1440) at 1000 FPS. (ENTER key to go into fullscreen mode)

---

Customize the message with url param: https://fx.leftium.com/static?text=HN

(To see all options: 'U' key copies URL to clipboard and also outputs to dev console.)

Made with SvelteKit: https://github.com/Leftium/fx

Comments URL: https://news.ycombinator.com/item?id=48263512

Points: 2

# Comments: 0

Categories: Hacker News

Evaluating Quarkdown for Agentic Typesetting

Mon, 05/25/2026 - 12:53am
Categories: Hacker News

Pages