Live data from Hacker News

Arguing against using protobuffers

reasonablypolymorphic.com

1–10 of 307 posts

Re: Arguing against using protobuffers

#4
> Despite map fields being able to be parameterized, no user-defined types can be. This means you'll be stuck hand-rolling your own specializations of common data structures.

What a pain! Well, at least Google won't make that mistake again!

Re: Arguing against using protobuffers

#6

Good points, but can someone articulate what the best alternative to protobuffers would be in 2018, you know with 'hindsight' etc.?

I've heard good things about https://capnproto.org/ but the author of this piece may strongly disagree, since I think their objections are rather more fundamental, and also because Cap'n Proto went with banning the concept of "required" fields.

I'd also be interested in what alternatives the author might suggest.

Re: Arguing against using protobuffers

#7
post #5

Good points, but can someone articulate what the best alternative to protobuffers would be in 2018, you know with 'hindsight' etc.?

Depending on your goals, Cap’n Proto is excellent.

Which of the problems listed in the article are solved by it?

Re: Arguing against using protobuffers

#8
Wow, some minor complaints on language formality issues, then discredit the thing as a whole.

But in the end, the author probably does not understand PB solves the inter-language data sharing problem, which makes all its complain secondary and inconsequential.

It's like complaining a car that drives fast and has great gas efficiency of cannot talk. (Well in 2018, it might be less of a stretch to demand a car that can talk)

Re: Arguing against using protobuffers

#9

Good points, but can someone articulate what the best alternative to protobuffers would be in 2018, you know with 'hindsight' etc.?

JSON or graphql. Personally I think the typing, API compatibility and extensive language support make protobuffers currently the winner though, despite the warts
Post reply on HN