News for hackers. Stuff that matters.
Re:Rob Pike: "Current Unix tools are weakened by the built-i... by akkartik on Thursday June 14, 2012 @08:24PM (#4114304)
Just a nit: I think protocol buffers include representations, not just serialization formats. You need to have the schema of the proto to parse it correctly, know which fields are required, repeated, etc. Am I understanding you correctly?
Re:Rob Pike: "Current Unix tools are weakened by the built-i... by haberman on Friday June 15, 2012 @02:49AM (#4115377)
It's true that many Protocol Buffer libraries include representations, but these are for convenience; Protocol Buffers are defined in terms of their serialization format and schema.
Re:Rob Pike: "Current Unix tools are weakened by the built-i... by akkartik on Friday June 15, 2012 @04:15AM (#4115543)
I don't follow. Isn't schema the same as representation? It's the equivalent of the DTD for an XML document.

To be super concrete, I can't read a file containing protos without knowing their type, what fields they contain, etc. I can however read JSON just fine without knowing the precise schema being encoded.

Re:Rob Pike: "Current Unix tools are weakened by the built-i... by Evbn on Friday June 15, 2012 @02:36AM (#4115345)
Schema isn't representation the way haberman is using it. He means something like implementation, which protobuf has in many languages in various VMs and can be easily ported to more.