Re: [Cbor] Review of draft-bormann-cbor-sequence

Felipe Gasper <felipe@felipegasper.com> Sun, 30 June 2019 21:55 UTC

Return-Path: <felipe@felipegasper.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 B00B81201D3; Sun, 30 Jun 2019 14:55:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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=felipegasper.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 LLIXppVO5Lk3; Sun, 30 Jun 2019 14:55:50 -0700 (PDT)
Received: from web1.siteocity.com (web1.siteocity.com [67.227.147.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CDF081201D1; Sun, 30 Jun 2019 14:55:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=felipegasper.com; s=default; h=To:References:Message-Id: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Wk6cnkkPmwMp3ZFNrOHlKS/yMNIejcm21LDYvaiVgO8=; b=HgKxxfVGPUh6HMQYrHEPwVzFK bATiDyvq4kMLlh1Ohr9aU5b+MBtpE31v0sQHCj/lreC5cAOgcc29lzJg1j8akJo/9+MFMhtvQjdPl ffHZlgHHnFxkdrD+PBeda9NvEKpJGMrqK5PKhE7qO3ZbFiqjf+7966n7veFp521xBQ96OAGP9Ia+L 1G/a88oRH2yLA2C4xQdCpe/YtVbOBDQx6eBH9Ppbr76xtSm/V9DkHhgZXoBBZ0VQD7K+TcXVjjHvv U5wMw0AeM6vgYNVtetR3RZmsnwGrcSdU/q+6gf9gTMsN9WOaC5Y+CAy/V2lFkjbZCiP2lGUHmi3vn zZ9Anz8kg==;
Received: from [149.248.87.38] (port=51358 helo=[192.168.86.56]) by web1.siteocity.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from <felipe@felipegasper.com>) id 1hhhnX-006mKs-79; Sun, 30 Jun 2019 16:55:48 -0500
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (1.0)
From: Felipe Gasper <felipe@felipegasper.com>
X-Mailer: iPhone Mail (16F203)
In-Reply-To: <0e8901d52f6c$08291060$187b3120$@augustcellars.com>
Date: Sun, 30 Jun 2019 17:55:45 -0400
Cc: Carsten Bormann <cabo@tzi.org>, draft-bormann-cbor-sequence@ietf.org, cbor@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <4AF53D16-C6AE-4D53-9A3A-DF442D827D86@felipegasper.com>
References: <01f201d50ac9$d6b1abd0$84150370$@augustcellars.com> <CA0F439A-A578-4AE5-9E05-1277FF949997@tzi.org> <0e8901d52f6c$08291060$187b3120$@augustcellars.com>
To: Jim Schaad <ietf@augustcellars.com>
X-OutGoing-Spam-Status: No, score=-1.0
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - web1.siteocity.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - felipegasper.com
X-Get-Message-Sender-Via: web1.siteocity.com: authenticated_id: fgasper/from_h
X-Authenticated-Sender: web1.siteocity.com: felipe@felipegasper.com
X-Source:
X-Source-Args:
X-Source-Dir:
X-From-Rewrite: unmodified, already matched
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/PY3jBJ4LHNDjneXhKx0S4LkT6M0>
Subject: Re: [Cbor] Review of draft-bormann-cbor-sequence
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 30 Jun 2019 21:55:52 -0000

What is the advantage of defining a CBOR data sequence as a simple concatenation versus a tagged CBOR array of indefinite length?

Thank you!

-FG

> On Jun 30, 2019, at 1:48 PM, Jim Schaad <ietf@augustcellars.com>; wrote:
> 
> See below.
> 
> -----Original Message-----
> From: Carsten Bormann <cabo@tzi.org>; 
> Sent: Sunday, June 23, 2019 9:53 AM
> To: Jim Schaad <ietf@augustcellars.com>;
> Cc: draft-bormann-cbor-sequence@ietf.org; cbor@ietf.org
> Subject: Re: Review of draft-bormann-cbor-sequence 
> 
> Hi Jim,
> 
> except for items 3 and 5 below, where I don’t quite agree, I believe I have addressed all your comments as well as the other items that popped up for -00 in Prague and on the mailing list.
> 
> Please enjoy at:
> 
> Status:   https://datatracker.ietf.org/doc/draft-bormann-cbor-sequence/
> Htmlized: https://tools.ietf.org/html/draft-bormann-cbor-sequence
> Diff2:    https://tools.ietf.org/rfcdiff?url2=draft-bormann-cbor-sequence-01.txt
> 
> Grüße, Carsten
> 
> 
>> On May 15, 2019, at 04:56, Jim Schaad <ietf@augustcellars.com>; wrote:
>> 
>> […]
>> 3.  Section 2 - I think that I would remove the parenthesis in the 
>> third paragraph.  This is almost the entire paragraph.
> 
> I believe that is useful information, so I don’t think the parenthesis should be removed.
> 
> [JLS] I am not suggesting that the sentence be removed, just the parenthesis characters.
> 
>> […]
>> 5.  Section 2 - A program, not the decoder, may also be able to 
>> recover by decoding individual fields looking for a pattern that 
>> matches an expected structure.  As an example, looking for a byte 
>> which corresponds to an array of 3 items and then test decoding to see 
>> if it works and continue from that point.
> 
> The specific recovery actions are out of scope (and the text says so).
> I don’t think we should give advice here for diagnostic tools beyond what is needed for a true decoder.
> 
> [JLS] The problem I have with this argument is that you are actually giving an example - should that example then be deleted?
> 
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor