4 ms·
I worked on a Swift ASN.1 compiler [1] a while back (not swift-asn1, mine used Codable). I saved myself some time by using the Heimdal JSON compiler, which can
by lukeh 1y ago
I worked on a Swift ASN.1 compiler [1] a while back (not swift-asn1, mine used Codable). I saved myself some time by using the Heimdal JSON compiler, which can transform ASN.1 into a much more parseable JSON AST.
[1] https://github.com/PADL/ASN1Codable https://github.com/PADL/ASN1Codable
[2] https://github.com/heimdal/heimdal/tree/master/lib/asn1 https://github.com/heimdal/heimdal/tree/master/lib/asn1
- BradleyChatha 1y agoNot heard of either of those projects before, but I love how libasn1's README has a thinly veiled hint of disdain for ASN.1 > which can transform ASN.1 into a much more parseable JSON AST The sign of a person who's been hurt, and doesn't want others to feel the same pain :D
- marcosdumay 1y agoHey, I love how the author describes ASN.1 as a "syntax" in quotes. What I disagree is on the disdain being veiled. Seems very explicit to me. Anyway, yeah, I hadn't heard about it before either, and it's great to know that somebody out there did solve that horrible problem already, and that we can use the library.
- cryptonector 1y agoUgh, I did not mean to express disdain.
- marcosdumay 1y agoI'm sorry for misinterpreting it then. But I have to say, it's funnier to imagine you did. And easy to relate.
- cryptonector 1y agoFair.
- cryptonector 1y agoI think you're mistaking this: > ASN.1 is a... some would say baroque, perhaps obsolete, archaic even, "syntax" for expressing data type schemas, and also a set of "encoding rules" (ERs) that specify many ways to encode values of those types for interchange. for me expressing disdain for ASN.1. On the contrary: I'm saying those who would say that are wrong: > ASN.1 is a wheel that everyone loves to reinvent, and often badly. It's worth knowing a bit about it before reinventing this wheel badly yet again. :)
- BradleyChatha 1y agoAh sorry, emotions and written text are always a hard thing to put together.