Re: [Cbor] I-D Action: draft-ietf-cbor-edn-literals-05.txt

Carsten Bormann <cabo@tzi.org> Tue, 17 October 2023 18:43 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0353BC14F748 for <cbor@ietfa.amsl.com>; Tue, 17 Oct 2023 11:43:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.895
X-Spam-Level:
X-Spam-Status: No, score=-1.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
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 vLcX7GAAMQcD for <cbor@ietfa.amsl.com>; Tue, 17 Oct 2023 11:42:53 -0700 (PDT)
Received: from smtp.zfn.uni-bremen.de (smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 75B2AC137360 for <cbor@ietf.org>; Tue, 17 Oct 2023 11:42:52 -0700 (PDT)
Received: from [192.168.217.124] (p548dc15c.dip0.t-ipconnect.de [84.141.193.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4S92sf6YnHzDCdG; Tue, 17 Oct 2023 20:42:46 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <169756752495.56890.7910854495195534985@ietfa.amsl.com>
Date: Tue, 17 Oct 2023 20:42:46 +0200
X-Mao-Original-Outgoing-Id: 719260966.394145-fb54950f19f28cb27dfdae421158974d
Content-Transfer-Encoding: quoted-printable
Message-Id: <E1A5EF77-8AB5-4178-94B5-38900D4DF6AC@tzi.org>
References: <169756752495.56890.7910854495195534985@ietfa.amsl.com>
To: cbor@ietf.org
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/w5_T_EALrOr5qxeWO0QLm77oIEU>
Subject: Re: [Cbor] I-D Action: draft-ietf-cbor-edn-literals-05.txt
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Oct 2023 18:43:00 -0000

This is the revision I promised two weeks ago.
It did take a bit longer than planned, but that is mostly due to very useful comments, in particular by Christian.

The summary comment for the revision is:

> -05: encoding indicators, chunked strings, ip'', 999()
> 
> Discussion of roundtripping
> ip''/IP'': upper case/lower case application literals
> 999(): application extension stand-in
> 888(): ellipsis and ellipsis stand-in
> editorial and ABNF improvements

Please see for yourself, in particular the diff link below.

edn-abnf has a proof of concept implementation for playing around with all of this:

   gem install edn-abnf
   edn-abnf -tdiag -e "h'1234...7890’"
   edn-abnf -tdiag my-file.diag

Grüße, Carsten


On 2023-10-17, at 20:32, internet-drafts@ietf.org wrote:
> 
> Internet-Draft draft-ietf-cbor-edn-literals-05.txt is now available. It is a
> work item of the Concise Binary Object Representation Maintenance and
> Extensions (CBOR) WG of the IETF.
> 
>   Title:   CBOR Extended Diagnostic Notation (EDN): Application-Oriented Literals, ABNF, and Media Type
>   Author:  Carsten Bormann
>   Name:    draft-ietf-cbor-edn-literals-05.txt
>   Pages:   30
>   Dates:   2023-10-17
> 
> Abstract:
> 
>   The Concise Binary Object Representation, CBOR (STD 94, RFC 8949),
>   defines a "diagnostic notation" in order to be able to converse about
>   CBOR data items without having to resort to binary data.
> 
>   This document specifies how to add application-oriented extensions to
>   the diagnostic notation.  It then defines two such extensions for
>   text representations of epoch-based date/times and of Constrained
>   Resource Identifiers (draft-ietf-core-href).
> 
>   To facilitate tool interoperation, this document also specifies a
>   formal ABNF definition for extended diagnostic notation (EDN) that
>   accommodates application-oriented literals.
> 
> The IETF datatracker status page for this Internet-Draft is:
> https://datatracker.ietf.org/doc/draft-ietf-cbor-edn-literals/
> 
> There is also an HTML version available at:
> https://www.ietf.org/archive/id/draft-ietf-cbor-edn-literals-05.html
> 
> A diff from the previous version is available at:
> https://author-tools.ietf.org/iddiff?url2=draft-ietf-cbor-edn-literals-05