4 ms·
Why not use something like Protobufs and Cap'n'Proto instead of yet another serialization format?
by mixedCase 10y ago
Why not use something like Protobufs and Cap'n'Proto instead of yet another serialization format?
- kevin_thibedeau 10y agoThey require a schema. A schemaless binary serialization like CBOR or BSON is more amenable to JSON interchange.
- CJefferson 10y agoI always find myself finding myself back with JSON. The advantage it can be parsed easily in any language -- everything has a JSON parser.
- hnbroseph 10y agoprotobufs are fairly wide spread... from action script to erlang to haskell to visual basic.
- CJefferson 10y agoLast time I tried (6 months ago) I couldn't find a proto3 implementation for Haskell that was complete ( https://github.com/google/proto-lens https://github.com/google/proto-lens doesn't do Any, https://github.com/alphaHeavy/protobuf https://github.com/alphaHeavy/protobuf doesn't do proto3). Maybe one exists, or I could use proto2 and rewrite the other system I was working with. I decided it was easier in my case to just output JSON.