Re: [Cbor] 🔔 Confirmation call for Working Group Adoption for draft-greevenbosch-appsawg-cbor-cddl

Brian E Carpenter <brian.e.carpenter@gmail.com> Sun, 09 July 2017 20:43 UTC

Return-Path: <brian.e.carpenter@gmail.com>
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 951F812EC4B for <cbor@ietfa.amsl.com>; Sun, 9 Jul 2017 13:43:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NBvPfxRj_P_d for <cbor@ietfa.amsl.com>; Sun, 9 Jul 2017 13:43:04 -0700 (PDT)
Received: from mail-pg0-x22f.google.com (mail-pg0-x22f.google.com [IPv6:2607:f8b0:400e:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E643012EC1D for <cbor@ietf.org>; Sun, 9 Jul 2017 13:43:03 -0700 (PDT)
Received: by mail-pg0-x22f.google.com with SMTP id t186so39495412pgb.1 for <cbor@ietf.org>; Sun, 09 Jul 2017 13:43:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ScFGyO1mrxvnEBBCLCMcxv6a7j3Wr05gZMG1F47iIiQ=; b=ZNTWJoToRHrwIxOWtsG5XiWSe+qlr3ATGfll62jPlr2Lo7F/QoT5GDBk0ZIgBYpQey dzADv0HcLcKlTZIkJaR4pWWPWReUZnRZWu+wj6q0gbuyswEX6AHgEygaDvEHklWx/Nrt F35Zqq9OTf9+oasrdzQfaALS3VwQAFDpDHHbFejhiDmEDrKiTQsZDVHtuek6Q0OxKqMf 1xyGECIYL+8sz1p/0feKkJs6DnDUOAEZ0trN1w6RWPKcEbpUbzxJb14AHXDe7k07MJ49 2HLoDmmg1rOm7Ryt2iIM/ahF85XBVr08m1aeFYYF8EUfqqwwhIRbs+xK7/wRXvqUO2Zc 1iTQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=ScFGyO1mrxvnEBBCLCMcxv6a7j3Wr05gZMG1F47iIiQ=; b=Aj+k/jFHARwnJNZpfjTUTv/aMPVN6bWrPFRqCXi5w7qdcciUuJDoquB5J8areJ827a l4OLkDcOrCEkPToslrelVsXdgP+Z27KOdxCHiOjYNhA4MYYl38+13H/1nDygdpI5Sque lN3zUmnmSFLHq4ul5U0cwf1cR9EbkFUS2A2my8C/QZJAtUrTkJvu0fS/vWqB+QwI7FOw ob44rndFeTTtarlu0WJFFlgyxvd0pc4s7z8Md3AD1Qu7FBIqGZj2JBcYYYrTs9FQNsw0 fxUBJh02wpYbQ38EiVpO4Ed1cnt6GuNv3MGYI1I4DBKMFzFWPoivRYA2ZYdYCYlqfrG+ WjIQ==
X-Gm-Message-State: AIVw113+9TkMZcRxitURlt5SSk9r78DMiFo59caiYaPFrdvzWBttDPRd B1LRVZ8OegsKXg==
X-Received: by 10.84.225.5 with SMTP id t5mr15127347plj.108.1499632983462; Sun, 09 Jul 2017 13:43:03 -0700 (PDT)
Received: from [192.168.178.21] ([118.148.76.144]) by smtp.gmail.com with ESMTPSA id s123sm18137048pgs.2.2017.07.09.13.43.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Jul 2017 13:43:02 -0700 (PDT)
To: Michael Richardson <mcr+ietf@sandelman.ca>, "cbor@ietf.org" <cbor@ietf.org>
Cc: Jeffrey Yasskin <jyasskin@chromium.org>, Francesca Palombini <francesca.palombini@ericsson.com>
References: <HE1PR0701MB25390DA8E0A1BEDE50EF206D98D40@HE1PR0701MB2539.eurprd07.prod.outlook.com> <CANh-dXkWA6rm23NU9s-w2-oz6Sqqv7RhsDM5teup8EDGmUhRuA@mail.gmail.com> <22969.1499631064@obiwan.sandelman.ca>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Organization: University of Auckland
Message-ID: <41e610dc-bd3e-88d3-56ab-29e856b24ffd@gmail.com>
Date: Mon, 10 Jul 2017 08:42:57 +1200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <22969.1499631064@obiwan.sandelman.ca>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/QAtDEbrEREICdQiyOmlThqDsZ6A>
Subject: Re: [Cbor] 🔔 Confirmation call for Working Group Adoption for draft-greevenbosch-appsawg-cbor-cddl
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.22
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: Sun, 09 Jul 2017 20:43:06 -0000

On 10/07/2017 08:11, Michael Richardson wrote:
> 
> Jeffrey Yasskin <jyasskin@chromium.org> wrote:
>     > The Chicago minutes [1] talk about people using CDDL to write
>     > specifications, but the -11 document is on the informational track
>     > rather than the standards track, meaning, I believe, that it's not
>     > intended to be referenced normatively from specifications. If folks do
>     > want to be able to use CDDL from standards, would the draft need to
>     > change tracks before it becomes a working group item?
> 
> I didn't think that CDDL would always require a normative reference from a
> standards track document.
> 
> My feeling is that if the structures are relatively simple that the CDDL is
> self-describing.  Most readers and implementers won't need to go further.

Unfortunately I don't think that's correct. It isn't just ABNF; there are
implied semantics in the constructs. For draft-ietf-anima-grasp, this is
the draft appendix I came up with to define the subset we use:

1. CDDL is expressed in ASCII characters.
2. Data items have identifiers. An identifier is a contiguous sequence of case-sensitive letters,
   digits, underscores ("_") and hyphens ("-") starting with a letter.
3. A comment is any text starting with a semi-colon (";") until the end of the line
4. Decimal integers have their normal meaning.
5. Text strings are enclosed by double quotation '"' characters.
6. The operator "=" means that the data item on its left is defined by the expression on its right.
7. The operator "/=" means that the data item on its left MAY be defined by the expression on its right.
In an expression:
8. Parentheses ("(", ")") delimit a syntactic unit.
9. Brackets ("[", "]") delimit a CBOR array.
10. In a CBOR array, items are separated by commas (",").
11. The prefix operator "+" indicates an item that occurs at least once.
12. The prefix operator "?" indicates an item that occurs zero or more times.
13. The infix operator "/" indicates a choice.
14. The infix operator ".." indicates an inclusive range.
15. The datatype name "bytes" indicates a byte string item
16. The datatype name "text" indicates a UTF-8 character string item.
17. The datatype name "uint" indicates an unsigned integer.
18. The datatype name "any" indicates any valid CBOR item.
19. The annotation ".size" precedes the size of a data item.
20. The annotation ".bits" precedes the bit number selected in a data item.
21. The annotation ".within" indicates that the data item on its left is subsetted from the item on its right.
22. "null" means a null value.

    Brian

> 
> I guess the question is what happens when more advanced constructs are
> needed.  In that case, I guess a normative reference would be required,
> and then the question would indeed arise.
> 
> 
> --
> Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
>  -= IPv6 IoT consulting =-
> 
> 
> 
> 
> 
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor
>