News for hackers. Stuff that matters.
Re:Msgpack can't differentiate between raw binary data and t... by kiyoto on Friday February 22, 2013 @11:31PM (#5268571)
I think your view, while warranted, is very web programming centric. MessagePack was initially developed for RPC. That might explain some of the "oddities" when viewed as a drop-in, space-efficient replacement for JSON.
Re:Msgpack can't differentiate between raw binary data and t... by prodigal_erik on Saturday February 23, 2013 @12:08AM (#5268645)
msgpack.org probably shouldn't be promoting it as a "perfect replacement", when valid messages which have no JSON equivalent have already been seen in practice. At best it's a superset, and if none of the implementations can confine you to a JSON-compatible subset (no byte strings, no int64, no non-string keys) which assures interop, that's a problem.

Mostly I wish people would agree on a schema and use ASN.1 PER, rather than choosing from the ever-growing list of binary type-length-value formats which put a redundant copy of the schema on the wire in every message (making them neither small nor readable). I've never had occasion to do anything useful with a message whose format wasn't already known when I wrote the code.

Re:Msgpack can't differentiate between raw binary data and t... by stock_toaster on Saturday February 23, 2013 @12:15AM (#5268656)
> I think your view, while warranted, is very web programming centric

FWIW, I do very little "web work" (by which I assume you mean front-end?). Instead it is mostly api endpoints for mobile and server-to-server backend messaging. Lots of http transport stuff. If I were doing rpc, I would either not (and use a restful or type-2 api), or use something like protobuf or thrift.

Msgpack just doesn't seem, to me, as a really great fit for anything in particular.

Re:Msgpack can't differentiate between raw binary data and t... by kiyoto on Saturday February 23, 2013 @02:41AM (#5268908)
I don't mean frontend but anything related to web services, really. "Lots of http transport stuff" is still "web programming" (for me, at least).

>Msgpack just doesn't seem, to me, as a really great fit for anything in particular.

Pinterest disagrees: http://engineering.pinterest.com/posts/2012/memcache-games/

To give you some context, frsyuki developed MessagePack originally for RPC (he was building a distributed key-value store in college) and made a conscious decision not to add a string type for maximal cross-language compatibility. Like a lot of other technology, MessagePack has outlived its original purpose, and there is a lot of demand now for it to support the (utf-8) string type, not just byte array.

Re:Msgpack can't differentiate between raw binary data and t... by stock_toaster on Saturday February 23, 2013 @02:54AM (#5268933)

  >  "Lots of http transport stuff" is still "web programming" (for me, at least).
Web programming to me sounds like javascript and css. A the very least something to do with html output at some point. Oh well.

  > Pinterest disagrees: http://engineering.pinterest.com/posts/2012/memcache-games/
I didn't see any reference in that post to them trying compression. It would have been an interesting comparison.

Good data point on usefulness though. Thanks for that.