Re: [Cbor] Fwd: [netmod] CBOR YANG encoding of union & bits [draft-ietf-core-yang-cbor-12]

worley@ariadne.com Thu, 07 May 2020 02:16 UTC

Return-Path: <worley@alum.mit.edu>
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 94D7D3A03F3 for <cbor@ietfa.amsl.com>; Wed, 6 May 2020 19:16:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.639
X-Spam-Level:
X-Spam-Status: No, score=-1.639 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=comcastmailservice.net header.b=W1e1s43u; dkim=pass (2048-bit key) header.d=comcastmailservice.net header.b=aIEdoBcF
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 lFyTNUYddyrY for <cbor@ietfa.amsl.com>; Wed, 6 May 2020 19:16:39 -0700 (PDT)
Received: from resdmta-ch2-02v.sys.comcast.net (resdmta-ch2-02v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:82]) (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 E24DB3A0365 for <cbor@ietf.org>; Wed, 6 May 2020 19:16:38 -0700 (PDT)
Received: from resqmta-ch2-06v.sys.comcast.net ([69.252.207.38]) by resqmta-ch2-12v.sys.comcast.net with ESMTP id WVw2jlezUnv6FWW5Vjq3kz; Thu, 07 May 2020 02:16:37 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcastmailservice.net; s=20180828_2048; t=1588817797; bh=x9Lf7HghSsHakwZc6+jEUY+RLMlzQJhledInLtzHVtM=; h=Received:Received:Received:Received:Received:From:To:Subject:Date: Message-ID; b=W1e1s43ujJhO7L79R/CFKBHzlhQT9HknXOQZcu9L60ox5dZiJCXsDkVze58Chtely rEoiypV0S51cCJ7Ya7D4E9U6pd1qS10DKcUoWqfXSBxRj3x+hXHDkg/keT5wZvmXhB kKl8E+e6b6EY/gW8xU2QPNPDWzaQOWVUxww08X2etaZ4mD0UsQLzL6hn6kqJB3engv KQM1oiqbW65yurxwvaowrlBjDjOyuGvhykfbVfgIepDRIsMvpNgxbNN+SBuNLFSHXU lvh3B6UHa/jHJQDvPCEfQH3KiGEyAbSeENlPOmX7Afo6FE746DZsVgmbOUZNs3h1Uy mCUwtT2j7SPTQ==
Received: from resomta-ch2-07v.sys.comcast.net ([69.252.207.103]) by resqmta-ch2-06v.sys.comcast.net with ESMTP id WW31jMLjcaccEWW5UjM7xV; Thu, 07 May 2020 02:16:36 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcastmailservice.net; s=20180828_2048; t=1588817796; bh=x9Lf7HghSsHakwZc6+jEUY+RLMlzQJhledInLtzHVtM=; h=Received:Received:Received:Received:From:To:Subject:Date: Message-ID; b=aIEdoBcFRXKC9gO2kOT5p2Lpw19NLojMIGZJrSIygRqJnE2ps2mh15MvytB9MQp40 oiU3fpmFDOFVpV/W2H74m5IEY4rYrYbdTOcOpHSmPA8W8AlxTATfqih3bkPUFLCEL6 kMRUvbx/a2Gren7bspRFW5WanRS0oJ0c44plJWFXQ17xDtz2hE45b84+pEOsFovck+ jaARBdkEZBSrQ/Ak+YPHw8VF/OLfA8LaEQjBr4ZrcjIsolmqGggbDhOxMgxN6M77OY oEzBDgEt25a3+m+eTg3V82xS8j6xCkX8JGHiTGOlXLx47mhuIToTi+jmeKUIfDoRUB 8TDk5lhvFVDtQ==
Received: from hobgoblin.ariadne.com ([IPv6:2601:192:4a00:430:222:fbff:fe91:d396]) by resomta-ch2-07v.sys.comcast.net with ESMTPA id WW5PjsJM5D1LzWW5SjTnCf; Thu, 07 May 2020 02:16:36 +0000
X-Xfinity-VMeta: sc=-100.00;st=legit
Received: from hobgoblin.ariadne.com (hobgoblin.ariadne.com [127.0.0.1]) by hobgoblin.ariadne.com (8.14.7/8.14.7) with ESMTP id 0472GUof010972; Wed, 6 May 2020 22:16:30 -0400
Received: (from worley@localhost) by hobgoblin.ariadne.com (8.14.7/8.14.7/Submit) id 0472GTsU010956; Wed, 6 May 2020 22:16:29 -0400
X-Authentication-Warning: hobgoblin.ariadne.com: worley set sender to worley@alum.mit.edu using -f
From: worley@ariadne.com
To: Carsten Bormann <cabo@tzi.org>
Cc: cbor@ietf.org
In-Reply-To: <6ACF0CA3-59C4-4CE1-9344-81B43C75BAF4@tzi.org> (cabo@tzi.org)
Sender: worley@ariadne.com
Date: Wed, 06 May 2020 22:16:29 -0400
Message-ID: <87k11oa3r6.fsf@hobgoblin.ariadne.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/9h_Cq0Ub6eEIMU8FghEa_q-sWLk>
Subject: Re: [Cbor] Fwd: [netmod] CBOR YANG encoding of union & bits [draft-ietf-core-yang-cbor-12]
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: Thu, 07 May 2020 02:16:41 -0000

Carsten Bormann <cabo@tzi.org> writes:
> JFYI: Interesting discussion in core/netmod about potentially needing
> to represent sparse bit sets.  Anything we (cbor WG) can contribute to
> that?

One common representation for sparse bit sets is the list of indexes of
the 1 bits.  For this, the "Typed Arrays" proposal seems ideal.

I'm not sure this influences the Netmod discussion, though.

Dale