Re:Is the Unix shell ready for XML? (2006)
by userbinator on Saturday April 04, 2015 @08:44PM
(#9322704)
ASN.1 DER? It's very compact and length-delimited.
That was my first thought, too. Why do people forget about good old standards?
There are so many attempts to do Binary JSON, Binary XML, Binary YaML, ... whatever. Followed by language-specific serialization formats like Python's Pickle, php-serialize, and so on.
What a huge mess!
If any binary format wants to become a universal competitor to those, it:
- should offer some big advantages over the already established ASN.1, and
- should be significantly smaller and faster than compression of human-readable formats (e.g. json+gzip or xml+xz)
http://bsonspec.org
http://en.wikipedia.org/wiki/BSON
The main issue is that it doesn’t have arbitrary precision like, say, OpenTNL. That could probably be overcome somewhat with compressed streams.
It would also be nice to have a leaf-first format, or hints for depth-first or breadth-first traversal so that the stream could be processed as it’s received.
These are really old ideas so maybe I just haven’t stumbled onto a solution.