[protobuf] Why to reinvent the wheel ?

2010-11-08 Thread Kalki70
Hello, I just discovered this developers tool, and I can't understand why it was invented. Why didn't Google use ASN.1, which is standard and it is used for this, to make a language, platform independent description of data to be enconded later as XML, or different binary formats, that can be

Re: [protobuf] Why to reinvent the wheel ?

2010-11-08 Thread Kenton Varda
My understanding of ASN.1 is that it has no affordance for forwards- and backwards-compatibility, which is critical in distributed systems where the components are constantly changing. On Mon, Nov 8, 2010 at 7:34 PM, Kalki70 kalki...@gmail.com wrote: Hello, I just discovered this developers

Re: [protobuf] Why to reinvent the wheel ?

2010-11-08 Thread Kenton Varda
OK, I looked into this again (something I do once every few years when someone points it out). ASN.1 *by default* has no extensibility, but you can use tags, as I see you have done in your example. This should not be an option. Everything should be extensible by default, because people are very

Re: [protobuf] Why to reinvent the wheel ?

2010-11-08 Thread Christopher Smith
On Mon, Nov 8, 2010 at 9:59 PM, Kenton Varda ken...@google.com wrote: The bigger problem with ASN.1, though, is that it is way over-complicated. THIS It has way too many primitive types. It has options that are not needed. The encoding, even though it is binary, is much larger than