Top
Best
New

Posted by creationix 11 hours ago

RX – a new random-access JSON alternative(github.com)
81 points | 31 commentspage 2
creationix 11 hours ago|
A new random-access JSON alternative from the creator of nvm.sh, luvit.io, and js-git.
benatkin 7 hours ago||
Interesting. I've heard about cursors in reference to a Rust library that was mentioned as being similar to protobuf and cap'n proto.

Does this duplicate the name of keys? Say if you have a thousand plain objects in an array, each with a "version" key, would the string "version" be duplicated a thousand times?

Another project a lot of people aren't aware of even though they've benefitted from it indirectly is the binary format for OpenStreetMap. It allows reading the data without loading a lot of it into memory, and is a lot faster than using sqlite would be.

Edit: the rust library I remember may have been https://rkyv.org/

Spivak 8 hours ago||
I love these projects, I hope one of them someday emerges as the winner because (as it motivates all these libraries' authors) there's so much low hanging fruit and free wins changing the line format for JSON but keeping the "Good Parts" like the dead simple generic typing.

XML has EXI (Efficient XML Interchange) for precisely the reason of getting wins over the wire but keeping the nice human readable format at the ends.

snthpy 4 hours ago|
TIL.

EXI looks useful. Now I just wish there was a renderer in the pugjs format as I find that terse format much pure readable than verbose XML. I also find indentation based syntax easier to visually parse hierarchical structure.

Shahbazay0719 6 hours ago||
this is more nuanced than the title suggests. worth reading the whole thing
StephenZ15ga67 2 hours ago|
this matches my experience exactly