Re:The specs behind the specs – a deep-dive on ASN.1
by jnwatson on Friday January 14, 2022 @02:37AM
(#29931593)
I used a subset of ASN.1 for a project, and it worked quite well.
ASN.1 versioning in particular is a work of art.
Re:The specs behind the specs – a deep-dive on ASN.1
by cryptonector on Friday January 14, 2022 @12:43PM
(#29937490)
> Meanwhile, ProtoBufs and Thrift work off of more constrained and well-versioned interfaces.
Not so. Protocol buffers is just a TLV encoding, which is bad (see elsewhere in this thread) -- it's just a cut-down ASN.1 and variation on BER, so what.
ASN.1 can "well-version" everything just as well as anything else.
Re:The specs behind the specs – a deep-dive on ASN.1
by bri3d on Friday January 14, 2022 @01:58PM
(#29938597)
If I have two "proto3" implementations using the same definitions, I trust they work together, generally speaking.
If I have two ASN.1 BER implementations, I sadly can't really trust they work together, because I don't know what parts of "ASN.1" each one implemented.
Honestly, ASN.1 with semantic versioning at the protocol level would probably have been as robust and useful as Protobufs. If ASN.1 had been forked into "ASN.1 3.0 without 10 hazardous and awful 1980s text encodings," it could even be fairly palatable today. Whether the overly expansive nature of ASN.1 is a product of the committee / standards organization design or the timeframe in which it originated is certainly an interesting philosophical question.