3 ms·
json is kind of a lingua franca these days. For some kinds of things though, I do like tnetstring (has some nice qualities). msgpack (and bson too) always seem
by stock_toaster 14y ago
json is kind of a lingua franca these days. For some kinds of things though, I do like tnetstring (has some nice qualities).
msgpack (and bson too) always seemed a bit odd to me though. If you need binary packing, why not use protobufs or thrift?
- ArchD 14y agoWithin the space of {schema-ful, schemaless} x {binary, text}, protobuf, {BSON, MessagePack}, JSON each occupy a distinct position. The position (schema-ful, text) is not very meaningful combination in practice and not covered by these, whereas the position (schema-less, binary) is a valid practical use case supported by {BSON, MessagePack}. For example, you don't know the schema before-hand but still want to minimize data size.
- ville 14y agoThis looks like a useful way to compare. Waiting for someone who has compared them to draw this plot :)