News for hackers. Stuff that matters.
Re:Reverse Engineering Protobuf Definitions from Compiled Bi... by choppaface on Sunday March 10, 2024 @01:42AM (#39657202)
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.

Re:Reverse Engineering Protobuf Definitions from Compiled Bi... by kentonv on Sunday March 10, 2024 @02:06PM (#39661152)
"At least 4 years"? I believe I originally wrote the header you linked to in 2007... maybe 2006. ;)