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

For at least 4 years protobuf has had decent support for self-describing messages (very similar to avro) as well as reflection

https://github.com/protocolbuffers/protobuf/blob/main/src/go...

Xgooglers trying to make do on the cheap will just create a Union of all their messages and include the message def in a self-describing message pattern. Super-sensitive network I/O can elide the message def (empty buffer) and any for RecordIO clone well file compression takes care of the definition.

Definitely useful to be able to dig out old defs but protobuf maintainers have surprisingly added useful features so you don’t have to.

Bonus points tho for extracting the protobuf defs that e.g. Apple bakes into their binaries.



"At least 4 years"? I believe I originally wrote the header you linked to in 2007... maybe 2006. ;)




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

Search: