The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: John Cowan <cowan@ccil.org>
To: Richard Salz <rich.salz@gmail.com>
Cc: The Eunuchs Hysterical Society <tuhs@tuhs.org>
Subject: Re: [TUHS] tangential unix question: whatever happened to NeWS?
Date: Sat, 30 Jan 2021 18:20:53 -0500	[thread overview]
Message-ID: <CAD2gp_T95Bt6VAF8M=Q4uc4mwgp1jzjqa6dOh2JKiwiQbpR+HQ@mail.gmail.com> (raw)
In-Reply-To: <CAFH29tqx00nGYE4DaUfDroav-qprqCszEz2O=wDmMAG6UKJNmg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1428 bytes --]

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.

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        cowan@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@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.
>

[-- Attachment #2: Type: text/html, Size: 2782 bytes --]

  reply	other threads:[~2021-01-30 23:21 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-24 16:14 ron minnich
2021-01-24 16:24 ` Michael Kjörling
2021-01-24 17:04 ` Clem Cole
2021-01-24 18:36   ` Larry McVoy
2021-01-24 20:39     ` Ronald Natalie
2021-01-24 20:54       ` Larry McVoy
2021-01-24 21:01         ` Ronald Natalie
2021-01-24 23:38         ` Grant Taylor via TUHS
2021-01-25  0:18           ` Larry McVoy
2021-01-25  0:36             ` Grant Taylor via TUHS
2021-01-25  0:41               ` Larry McVoy
2021-01-24 20:45     ` Jon Steinhart
2021-01-24 21:11       ` Larry McVoy
2021-01-24 21:14         ` Jon Steinhart
2021-01-24 21:22           ` [TUHS] Apollo (was NeWS) Ronald Natalie
2021-01-24 21:25           ` [TUHS] tangential unix question: whatever happened to NeWS? Larry McVoy
2021-01-24 22:53             ` Dan Cross
2021-01-24 23:33               ` Jon Steinhart
2021-01-25  0:11                 ` Al Kossow
2021-01-25  0:21                   ` Jon Steinhart
2021-01-25 14:38                     ` Clem Cole
2021-01-25 15:31                       ` Al Kossow
2021-01-25 15:55                         ` Richard Salz
2021-01-25 16:04                           ` Larry McVoy
2021-01-25 16:37                             ` Dan Cross
2021-01-25 16:49                               ` Richard Salz
2021-01-25 17:11                               ` Bakul Shah
2021-01-25 17:25                               ` Larry McVoy
2021-01-29 20:24                                 ` Dave Horsfall
2021-01-29 20:31                                   ` Larry McVoy
2021-01-25 23:46                               ` John Gilmore
2021-01-29 19:53                               ` Dave Horsfall
2021-01-25 22:25                           ` Rob Gingell
2021-01-26  1:38                           ` Jon Steinhart
2021-01-27  3:11                             ` Dave Horsfall
2021-01-27  3:54                               ` Jon Steinhart
2021-01-27  5:15                                 ` George Michaelson
2021-01-27  5:52                                   ` George Michaelson
2021-01-27  5:48                                 ` Grant Taylor via TUHS
2021-01-27  6:19                                   ` Henry Bent
2021-01-27  7:28                                   ` Jon Steinhart
2021-01-27 10:02                                   ` Dave Horsfall
2021-01-27 18:32                                   ` Grant Taylor via TUHS
2021-01-27 19:26                                     ` Nemo Nusquam
2021-01-27 15:47                               ` Larry McVoy
2021-01-27 16:40                                 ` Stephen Clark
2021-01-26  2:45                           ` John Cowan
2021-01-27 19:34                             ` Nemo Nusquam
2021-01-29 22:02                             ` Dave Horsfall
2021-01-30  1:50                               ` Nemo Nusquam
2021-01-31  2:42                                 ` Dave Horsfall
2021-01-30  3:51                               ` Richard Salz
2021-01-30 23:20                                 ` John Cowan [this message]
2021-01-25 15:48                       ` Henry Bent
2021-01-25 14:33                   ` Clem Cole
2021-01-24 23:50             ` Ed Carp
2021-01-24 21:29       ` Al Kossow
2021-01-24 21:53       ` Lars Brinkhoff
2021-02-14  2:04       ` Greg A. Woods
2021-02-14  2:49         ` Jon Steinhart
2021-02-14  4:53           ` Rich Morin
2021-01-24 18:41   ` Toby Thain
2021-01-24 18:24 ` Dan Cross
2021-01-24 18:42   ` arnold
2021-01-24 19:11     ` Larry McVoy
2021-01-24 21:07 ` Rich Morin
2021-01-24 21:10   ` Ronald Natalie
2021-01-24 22:30     ` Rich Morin
2021-01-24 21:16   ` Jon Steinhart
2021-01-28  2:48 Norman Wilson
2021-01-28  9:24 Noel Chiappa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAD2gp_T95Bt6VAF8M=Q4uc4mwgp1jzjqa6dOh2JKiwiQbpR+HQ@mail.gmail.com' \
    --to=cowan@ccil.org \
    --cc=rich.salz@gmail.com \
    --cc=tuhs@tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).