Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> The fact that an empty message can successfully deserialise into any valid protobuf is an insane decision and should have been thrown out long ago

The reason for this is that the protobuf wire format is designed for very high entropy: It contains only a minimal amount of metadata and consists mostly of data. This means you can deserialize most wire messages as a different message. This is a tradeoff: smaller message size for loss of schema information. This just means that schemas need to be handled at a higher level. This tradeoff makes some sense if you process millions of protos per second.

BTW: Dismissing a tradeoff like this as insane is derogatory. You can do better



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: