Computer Old Farts Forum
 help / color / mirror / Atom feed
* [COFF] Joys of ASN.1 [Was: Re: tangential unix question: whatever happened to NeWS?]
       [not found]                               ` <CAD2gp_T95Bt6VAF8M=Q4uc4mwgp1jzjqa6dOh2JKiwiQbpR+HQ@mail.gmail.com>
@ 2021-01-31  2:47                                 ` cym224
  0 siblings, 0 replies; only message in thread
From: cym224 @ 2021-01-31  2:47 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1805 bytes --]

Migration to COFF, methinks

On 30/01/2021 18:20, John Cowan wrote:
> Those were just examples.  The hard part is parsing schemas, 
> especially if you're writing in C and don't know about yacc and lex.  
> That code tends to be horribly buggy.
True but tools such as the commercial ASN.1 -> C translators are fairly 
good and even asn1c has come a long way in the past few decades.

N.

>
> But unless you need to support PER (which outright requires the 
> schema) or unless you are trying to map ASN.1 compound objects to C 
> structs or the equivalent, you can just process the whole thing in the 
> same way you would JSON, except that it's binary and there are more 
> types.  Easy-peasy, especially in a dynamically typed language.
>
> Once there was a person on the xml-dev mailing list who kept repeating 
> himself, insisting on the superiority of ASN.1 to XML.  Finally I told 
> him privately that his emails could be encoded in PER by using 0x01 to 
> represent him (as the value of the author field) and allowing the 
> recipients to reconstruct the message from that!  He took it in good part.
>
>
>
> John Cowan http://vrici.lojban.org/~cowan 
> <http://vrici.lojban.org/%7Ecowan> cowan at ccil.org <mailto:cowan at ccil.org>
> Don't be so humble.  You're not that great.
>   --Golda Meir
>
>
> On Fri, Jan 29, 2021 at 10:52 PM Richard Salz <rich.salz at gmail.com 
> <mailto:rich.salz at gmail.com>> wrote:
>
>     PER is not the reason for the hatred of ASN.1, it's more that the
>     specs were created by a pay-to-play organization that fought
>     against TCP/IP, the specs were not freely available for long
>     years, BER was too flexible, and the DER rules were almost too
>     hard to get right.  Just a terse summary because this is probably
>     off-topic for TUHS.
>



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-31  2:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAP6exYJi7nhy-DJQv1c=JiiTV=FrQZdzhqMRSm-zz3PrF1fgOA@mail.gmail.com>
     [not found] ` <20210124183653.GD21030@mcvoy.com>
     [not found]   ` <202101242045.10OKjDvA964774@darkstar.fourwinds.com>
     [not found]     ` <20210124211100.GI21030@mcvoy.com>
     [not found]       ` <202101242114.10OLEYGk966708@darkstar.fourwinds.com>
     [not found]         ` <20210124212525.GJ21030@mcvoy.com>
     [not found]           ` <CAEoi9W5=toe-bb+6-zC0odkx4_C4X4FZpK4+ZJTAqCKGOCXP7w@mail.gmail.com>
     [not found]             ` <202101242333.10ONXjcI974038@darkstar.fourwinds.com>
     [not found]               ` <fc52a1a1-2136-ae39-110c-93a38e73ff94@bitsavers.org>
     [not found]                 ` <202101250021.10P0L3Z2976588@darkstar.fourwinds.com>
     [not found]                   ` <CAC20D2OhTW+eebyub7dVMBGZy1zoOja=ojGB_=TOjgB0wEJdHQ@mail.gmail.com>
     [not found]                     ` <6557f782-ecb1-6476-1eda-e23f30f9bbea@bitsavers.org>
     [not found]                       ` <CAFH29to9GaKVxUXw8uwbeMAcF6izD=8gqhqROzCOSEA5xOA5aQ@mail.gmail.com>
     [not found]                         ` <CAD2gp_RsiayPg+xyEYK7AwrkuO0NS7f4o4pZ6JwVPuaoBWDdTA@mail.gmail.com>
     [not found]                           ` <alpine.BSF.2.21.9999.2101300853400.36435@aneurin.horsfall.org>
     [not found]                             ` <CAFH29tqx00nGYE4DaUfDroav-qprqCszEz2O=wDmMAG6UKJNmg@mail.gmail.com>
     [not found]                               ` <CAD2gp_T95Bt6VAF8M=Q4uc4mwgp1jzjqa6dOh2JKiwiQbpR+HQ@mail.gmail.com>
2021-01-31  2:47                                 ` [COFF] Joys of ASN.1 [Was: Re: tangential unix question: whatever happened to NeWS?] cym224

Computer Old Farts Forum

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/coff

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 coff coff/ http://inbox.vuxu.org/coff \
		coff@minnie.tuhs.org
	public-inbox-index coff

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.coff


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git