4 ms·
Just out of curiosity, what's a modern alternative to protobufs?
by colordrops 9y ago
Just out of curiosity, what's a modern alternative to protobufs?
- pagnol 9y agoI would also like to know why you don't consider it 'modern' and how you would define modern-ness in this context.
- throwawaysunday 9y agoI answered above.
- tilpner 9y agohttps://google.github.io/flatbuffers/ https://google.github.io/flatbuffers/ and https://capnproto.org/ https://capnproto.org/ are both successors to protobuf
- jkaplowitz 9y agogRPC uses Protobuf version 3. Both it and CapnProto are successors to Protobuf version 2. Flatbuffers is not a successor but is targeted at a different use case.
- haberman 9y agoI don't think they are successors, just different. Protobuf is a sparse wire format, whereas FlatBuffers and Cap'n Proto use a fixed-layout wire format. There are plusses and minuses to both. I wrote a little bit about this here: https://news.ycombinator.com/item?id=6329041#6330426 https://news.ycombinator.com/item?id=6329041#6330426 (Disclosure: I work at Google on the protobuf team)
- throwawaysunday 9y agoOne that is type extensible, not brittle and based on schemas with fragile language integration tools, is streamable down to the atom level, naturally sortable, homoiconic in nature and efficient to produce and consume. Such things exist, I'm not just rattling off buzzwords. The main thing is protocols are serious business and people, especially any of the big five shouldn't get to own them just because it suits a business interest.
- andrewflnr 9y agoName some. Seriously, I'm interested in protocol design, so I'll read them. But also, yeah, just declaring that things exist is kind of unhelpful.
- jbreiding 9y agoIt's easy to argue you are just rattling off buzzwords if you don't provide examples. I would also argue that not based on a schema is even more brittle as you end up implementing validation logic and client marshalling that the schema would allow you to just generate.
- icholy 9y ago> Such things exist, I'm not just rattling off buzzwords. you are though ...