News for hackers. Stuff that matters.
Re:Revisiting Apple Notes (6): The Protobuf by svachalek on Monday September 21, 2020 @02:26PM (#24546729)
Haven’t used protobufs for years but as I remember it you can use an old schema to read a newer version object, discarding the new fields. I don’t think that would be possible without the TLV.
Re:Revisiting Apple Notes (6): The Protobuf by cryptonector on Monday September 21, 2020 @03:04PM (#24547135)
This is called "extensibility".

In ASN.1 people were doing the same thing unofficially in the mid-80s, then explicit support was added in the form of "extensibility markers".

There's nothing new in protobufs.

EDIT: I should add that the non-TLV encoding rules for ASN.1 all support extensibility. Also, there are good engineering practices and security reasons why one should want explicit documentation of what structures/enums/choices/typeranges are expected to be extensible. Relying on decoders to ignore unexpected bits is not a sound practice.

Re:Revisiting Apple Notes (6): The Protobuf by mumblemumble on Monday September 21, 2020 @02:55PM (#24547047)
flatbuffers also support this, but use offset tables instead of TLV.

It may be that TLV is necessary if you want to do this in a format that is designed for streaming rather than random access.