Re: [art] Fwd: New Version Notification for draft-rivest-sexp-06.txt

Donald Eastlake <d3e3e3@gmail.com> Thu, 18 April 2024 04:27 UTC

Return-Path: <d3e3e3@gmail.com>
X-Original-To: art@ietfa.amsl.com
Delivered-To: art@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E2F27C14F5FB for <art@ietfa.amsl.com>; Wed, 17 Apr 2024 21:27:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.848
X-Spam-Level:
X-Spam-Status: No, score=-6.848 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7IRZJvVpG3xS for <art@ietfa.amsl.com>; Wed, 17 Apr 2024 21:27:39 -0700 (PDT)
Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 941B0C14CE3B for <art@ietf.org>; Wed, 17 Apr 2024 21:27:39 -0700 (PDT)
Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2d8863d8a6eso6253401fa.3 for <art@ietf.org>; Wed, 17 Apr 2024 21:27:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713414458; x=1714019258; darn=ietf.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=SsvDEfFbAQ38POxa4hgUCvXBk/VgrPSiBbbsmVtuZZk=; b=SMvsdRVU7l1wSW55Hx75GvZZ2hhbmWmCk5PAzvQtJ0cWIWCsF60k7b8D3Cvr5sLZwQ LbUwPa1vLIfF6WW/ioXGTo4EeI8BsfpAy2d/EOvHmr9dNCstzPQ1/slk/qOC7Y2gm62Z viMBHUuXJrumDcaMPVtj0gDFp1Lo/tpJe8BvvWKG2L1nCBhGqN5IDv23gygwd/aozzdB kWCAomsr5f5sMah8eLf4VlHLnN3hmjSyPHM+kigHxqv0FSbpmz8W0jBThZAfwiR8Oixb 2ikU/sDpPn29/q/3/YwToa/mMF64LMGi4X4pHbsmTARgZoSzkW59CNmHOQlLqC2f1A4I gMzQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713414458; x=1714019258; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SsvDEfFbAQ38POxa4hgUCvXBk/VgrPSiBbbsmVtuZZk=; b=GQVPLvKHpP+coNYsOsceHWMp1PNr1qGlReWWY5Rl1/hPnUX+8SnM6IG3KlQZ1gcg68 aiPSi2CsPL9R32+43WHSWfUgEITxSzPZVCeAxHyEr9+lqaMadIL6qgNBxq4OXYaegZHy 8prNhvp23FrvamY6armenbzKy16Z7r9YTR4nCdAaLXbC/+TSlqT5fWpZmViWokTLMirz r5kgdQvlnTl8urLaJrnsod7EkaZeX+e74IM4LH/jUY6cxCIgBnPjwXO+0imWajuxysMq JbJx8jGm5RO2kLN9gSK+pxb+t3CYoV+58vRvnsHVGLMlTqcgwFZnZfFcZtJ8rpkoztA6 zRKA==
X-Gm-Message-State: AOJu0YxyVivBcxYLmiMpTCp78JWCL/4w3iBwjfflYD9tBN8geFxtQ+V2 cbAXgL3s6LszNiU/VDMHlXWhl1XIRpR6AdSt0sI52r9RLqwEjEJzagk1LmLivCHt6o+RYrCFiRK ZUcpQmH2dqnpaaX88kkqoKB1wG1pypA==
X-Google-Smtp-Source: AGHT+IEKp4MhEeomN+jzVzvLhRKIVyTD2/Sn6/VZxOp0hr5w2UswCvSf45kcUdGTeFrYMQbZ/5LKC3w2BYc4yqu0VII=
X-Received: by 2002:ac2:4c36:0:b0:513:cf5e:f2ad with SMTP id u22-20020ac24c36000000b00513cf5ef2admr959922lfq.60.1713414457269; Wed, 17 Apr 2024 21:27:37 -0700 (PDT)
MIME-Version: 1.0
References: <171332687483.30286.1243519720062169998@ietfa.amsl.com> <CAF4+nEHk2_OPS8-G9m+wFMKU0gqjWp8W8CAfkjG7iHOz=7nFCQ@mail.gmail.com> <20240417112059.GA10771@unix-ag.uni-kl.de>
In-Reply-To: <20240417112059.GA10771@unix-ag.uni-kl.de>
From: Donald Eastlake <d3e3e3@gmail.com>
Date: Thu, 18 Apr 2024 00:27:25 -0400
Message-ID: <CAF4+nEGsZq0MuDce0iuA0u-Shu_NnXNhUo94kAZavc20D0M=7A@mail.gmail.com>
To: Erik Auerswald <auerswal@unix-ag.uni-kl.de>
Cc: ART Area <art@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/art/nlqOfITxs2U56qzptSpE1PHbVsc>
Subject: Re: [art] Fwd: New Version Notification for draft-rivest-sexp-06.txt
X-BeenThere: art@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Applications and Real-Time Area Discussion <art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/art>, <mailto:art-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/art/>
List-Post: <mailto:art@ietf.org>
List-Help: <mailto:art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/art>, <mailto:art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Apr 2024 04:27:42 -0000

Hi Erik,

On Wed, Apr 17, 2024 at 7:21 AM Erik Auerswald
<auerswal@unix-ag.uni-kl.de> wrote:
>
> Hi,
>
> On Wed, Apr 17, 2024 at 01:02:54AM -0400, Donald Eastlake wrote:
> >
> > An improved version has been posted responding to many of the comments
> > that have been made.
>
> Thanks for the update!
>
> I'd like to make a few comments from a quick glance:
>
> 1. It seems to me as if the second example of an S-expression given in
>    section 6.1 does not match the ABNF given in section 7.1.

See Marc's response.

> 2. It seems to me as if the "canonical" representation is not uniquely
>    defined, because -- according to the examples -- it may use "display
>    hints", but it is not specified if the "default" display hint
>    ("application/octet-stream" in the current draft) may be given or not.

Sure the default display hint can be given. Basically, every octet
string either has a display hint or not. If it does not, it may be
interpreted as if it had the default display hint. But the default
display hint is not suppressed just because it is the default nor is
it actually added if an octet string has no display hint.

> 3. Since the "default" display hint may be application-specific, omitting
>    it from the "canonical" representation, as shown in two of the three
>    examples in section 6.1, seems to possibly change the "canonical"
>    S-expression value when changing applications.

I don't think so. As above, the display hint is either present or not
in the S-expression. If it is present, whether it is the default
display-hint or some other display-hint, then it appears in the
canonical representation. If it is not present, it does not appear in
the canonical representation.

> 4. The value of the "default" display hint has changed over the versions
>    of this draft.  I'd expect this to cause interoperability problems
>    if any new implementation were to emerge, and if any existing
>    implementation would already implement the original default display
>    hint.

If you were sending an S-expression including an octet-string that
does not have a display hint from an application/implementation where
that string has one default display-hint to an
application/implementation where it will have a different default
display hint and this actually makes a difference, then there might be
a problem. So don't do that.

> 5. I'd say that this S-expression format has no similarities to
>    Bernstein's "netstrings", i.e., the length of a general S-expression
>    is not given up front.  Giving the complete length up front is the
>    one special property provided by netstrings.  Thus I'd say that the
>    last sentence of the first paragraph of section 1.1 is misleading.

Well, it seems to me that "similar" is mostly in the eye of the
beholder. Do you disagree with the rest of that sentence, that
S-expressions are more "readable and flexible" than net-strings?

> Best regards,
> Erik