Skip to content

Comment on Msgpack can't differentiate between raw binary data and text stringsparent

Comments

  > For me the advantage of msgpack is simplicity / efficiency in parsing the response 
If you like that, you might want to take a look at tnetstrings as a format.

Simple, yes. Efficient, no. For example, msgpack can encode a 2-byte binary blob in 3 bytes. tnetstrings takes eleven bytes, for no appreciable benefit in decoding time.

Also there's this gem:

> You are not allowed to implement any of the following features: UTF-8 Strings

glances at title of article

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.