News for hackers. Stuff that matters.
Re:RX – a new random-access JSON alternative by magicalhippo on Thursday March 19, 2026 @08:23AM (#47438153)
> The real cost with JSON is when you have a 200MB manifest or build artifact and you need exactly two fields out of it.

There are SAX-like JSON libraries out there, and several of them work with a preallocated buffer or similar streaming interface, so you could stream the file and pick out the two fields as they come along.

Re:RX – a new random-access JSON alternative by IshKebab on Thursday March 19, 2026 @09:22AM (#47438985)
You still have to parse half the entire file on average. Much slower than formats that support skipping to the relevant information directly.
Re:RX – a new random-access JSON alternative by creationix on Thursday March 19, 2026 @10:04AM (#47439681)
yep, this is exactly the kind of use case that caused me to design this format.