News for hackers. Stuff that matters.
Re:No JSON/MAPS interoperability in 17.0? by robgering on Friday March 14, 2014 @09:56AM (#7398699)
The author suggests using MessagePack, which I hadn't seen before but looks really cool.

http://msgpack.org/

Re:No JSON/MAPS interoperability in 17.0? by jwn on Friday March 14, 2014 @10:13AM (#7398809)
So MessagePack wants me to ditch one of the most portable widely used data transfer formats in the world to save 33% on message size? No thanks. I'm willing to bet that using Content-Encoding: gzip on the JSON would negate most of the size difference anyway.
Re:No JSON/MAPS interoperability in 17.0? by denzquix on Friday March 14, 2014 @10:15AM (#7398825)
But that also uses double precision floating point number representation and UTF-8 for strings, so the only benefit (according to the arguments given in the OP) seems to be text vs. binary-based.
Re:No JSON/MAPS interoperability in 17.0? by craigching on Friday March 14, 2014 @10:41AM (#7398999)
> But that also uses double precision floating point number representation

I don't think JSON requires the number representation to be double-precision, that can be up to the parser to decide how to represent a number. I think most people misrepresent this because the number implementation in JavaScript is double-precision, but that's not necessarily true for JSON. Am I wrong about that? Does JSON require the number format to be double-precision?

Re:No JSON/MAPS interoperability in 17.0? by denzquix on Friday March 14, 2014 @11:34AM (#7399473)
I had to check but yeah, that's true, the ECMA spec even says explicitly in its intro: "JSON is agnostic about numbers", they are "only a sequence of digits".

(Unrelated observation from looking at the spec again: there's no standard/recommended decoding behaviour if an object has several members with the same key.)

Re:No JSON/MAPS interoperability in 17.0? by jamieomatthews on Friday March 14, 2014 @10:04AM (#7398753)
This does look pretty cool. I think the author is forgetting about so many reasons why JSON is so widely used, however.

One huge benefit of JSON over msgpack or something similar is READABILITY.

Re:No JSON/MAPS interoperability in 17.0? by tmikaeld on Friday March 14, 2014 @10:03AM (#7398744)
It sure looks impressive, thanks for linking