Earlier quoted context omitted.
Reasoning went something like this: We could tag the new API v2: + Makes the "v1" and "v2" distinction very clear in the import path. - Confusing: google.golang.org/protobuf@v1 doesn't exist, but v2 does. - In ten years, hopefully nobody cares about the old github.com/golang/protobuf and the confusion is gone. We could tag the new API v1: - Less visually distinct in the import path. + Seems to make sense for the firs…
What are you going to do for APIv3? Version it as google.golang.org@v2? google.golang.org@v3 (but @v2 doesn't exist)? Release an @v2 which is identical to @v1?
A new Go API for Protocol Buffers
21–30 of 100 posts
Re: A new Go API for Protocol Buffers
#22Re: A new Go API for Protocol Buffers
#23> The github.com/golang/protobuf module is APIv1. > The google.golang.org/protobuf module is APIv2. We have taken advantage of the need to change the import path to switch to one that is not tied to a specific hosting provider. That's such a weird choice, and will be quite confusing. Now every time you see protobuf being imported, you have to be sure to pay extra attention to the domain used, and correctly remember w…
However, the goal is to create a new package name that can be concurrently imported with previous versions. Everything else is just method. Don't confuse the goal with the method.
Re: A new Go API for Protocol Buffers
#24> The github.com/golang/protobuf module is APIv1. > The google.golang.org/protobuf module is APIv2. We have taken advantage of the need to change the import path to switch to one that is not tied to a specific hosting provider. That's such a weird choice, and will be quite confusing. Now every time you see protobuf being imported, you have to be sure to pay extra attention to the domain used, and correctly remember w…
Re: A new Go API for Protocol Buffers
#25I thought the general consensus on protocol buffers was "Meh"?
Re: A new Go API for Protocol Buffers
#26I thought the general consensus on protocol buffers was "Meh"?
Re: A new Go API for Protocol Buffers
#27Re: A new Go API for Protocol Buffers
#28> The github.com/golang/protobuf module is APIv1. > The google.golang.org/protobuf module is APIv2. We have taken advantage of the need to change the import path to switch to one that is not tied to a specific hosting provider. That's such a weird choice, and will be quite confusing. Now every time you see protobuf being imported, you have to be sure to pay extra attention to the domain used, and correctly remember w…
Are version numbers 2.0 and higher explicitly banned?
Edit: found an explanation further down (spoiler: not a very good one but a very go one).
Re: A new Go API for Protocol Buffers
#29I thought the general consensus on protocol buffers was "Meh"?
For the average app? Overkill, sure.
Re: A new Go API for Protocol Buffers
#30I thought the general consensus on protocol buffers was "Meh"?
I think for large organizations they probably make sense. They're potentially a lot less data per request than JSON. For the average app? Overkill, sure.