News for hackers. Stuff that matters.
Re:Transit – A format for conveying values between different... by iheart2code on Tuesday July 22, 2014 @11:56AM (#8069633)
As neat as this sounds, I would prefer to do a little extra parsing by hand in exchange for the readability of JSON. Looking at some of Transit's examples, it seems like it would be difficult to gain as complete an understanding of a set of information at a glance.
Re:Transit – A format for conveying values between different... by rdtsc on Tuesday July 22, 2014 @12:09PM (#8069701)
JSON is readable in small quantities. A 100MB JSON file is just as readable as a 100MB binary file, except it is slower and bigger to parse.

Also unless you can see electrons bouncing on the wire, JSON is readable because there is a program that decodes and shows it to you. It would probably take a couple of lines of code in python to cat a msgpack file.

Re:Transit – A format for conveying values between different... by icebraining on Tuesday July 22, 2014 @12:28PM (#8069802)
Displaying files is not the only way to read JSON. I've often read it on the browser development tools, on Wireshark, on tcpdump, etc.
Re:Transit – A format for conveying values between different... by swannodette on Tuesday July 22, 2014 @12:03PM (#8069665)
All JSON based Transit reader and writers can respectively read and emit verbose output. You can easily imagine setting a dev configuration flag to enable this during development. Transit verbose JSON output is quite readable IMO - http://cognitect.github.io/transit-tour/resources/example.js...
Re:Transit – A format for conveying values between different... by zenbowman on Tuesday July 22, 2014 @01:52PM (#8070472)
In most cases, readability is not a concern for inter-program messaging. A good logging system in your program should take care of the readability concerns. I've never come across a single instance of a text format for interprogram messaging not having to be rewritten in a binary format once it becomes obvious that it is a huge waste of computing resources.

As Alan Kay suggested, it the total and deliberate ignorance of lessons learned from our history that has made modern programming into a pop-culture phenomenon.

Re:Transit – A format for conveying values between different... by fogus on Tuesday July 22, 2014 @12:02PM (#8069660)
Transit does specify a json-verbose mode that generates a human-readable JSON packet. I suppose readability lies in the eye of the beholder, but I think it looks reasonable.
Re:Transit – A format for conveying values between different... by logicallee on Tuesday July 22, 2014 @12:07PM (#8069687)
If it's programmatically self-describing, nobody ever has to read it.

EDIT: I mean as opposed to something like json that has what the authors describe as out-of-band schema.

Re:Transit – A format for conveying values between different... by bellerocky on Tuesday July 22, 2014 @12:09PM (#8069696)
You have to read it when you want to look at what is going over the wire. Like with Wireshark or just inspecting network traffic.
Re:Transit – A format for conveying values between different... by iheart2code on Tuesday July 22, 2014 @01:39PM (#8070373)
This is exactly what I was thinking. Also, when inheriting projects from other developers that didn't produce documentation.