Re: [core] Comments on draft-ietf-core-yang-cbor-00

Andy Bierman <andy@yumaworks.com> Tue, 17 May 2016 21:41 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C542212DB17 for <core@ietfa.amsl.com>; Tue, 17 May 2016 14:41:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 ui73VFtue_L3 for <core@ietfa.amsl.com>; Tue, 17 May 2016 14:41:57 -0700 (PDT)
Received: from mail-yw0-x22f.google.com (mail-yw0-x22f.google.com [IPv6:2607:f8b0:4002: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 7D11712DA42 for <core@ietf.org>; Tue, 17 May 2016 14:41:57 -0700 (PDT)
Received: by mail-yw0-x22f.google.com with SMTP id g133so29688912ywb.2 for <core@ietf.org>; Tue, 17 May 2016 14:41:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=8x3M6M9HEjSvFrWnYoS7WhxMByrtbRujn/E2i36SOc0=; b=tSeo78P4Pl0z8xqNpeAooP/MykMvvzkXAqOOMnNm5RY3fDUlAveUjQMeztBkikUFE6 JjZdZ90jk7+HP2YpLI1+AG4dtUnxKUw9sqH+CLsCfurKzH0gp5hpeXw8hIcHlJfPwBdL Sr7yfiWcSdvZnest5F3KV/NFtmhtaibOqbuqFzT9X3hzGDA26/FAx+PkH4VAICU5NOel Lb7V+SfhgJH3SB5OxU1nYCAS5KarTi9kpNJjsShlQqxGO99MbR+8eiSfmA2e6lAcpTVp hTDAitoExufk9w0voQP0GQSf/X8sqtKCzpnv7obLHMZPb8HXVTRF6vTCpU6R0lK+zCt5 NHOQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=8x3M6M9HEjSvFrWnYoS7WhxMByrtbRujn/E2i36SOc0=; b=iGcW6ojYNTQMq+tC3v0L+RAKdT3BZZ0PhRFHdOmkvb8GpedgXX1X+DbYJyDEg8zQFm 58f0wL1TNkeEUO8d+o8E7MBo7qWVqWAD2JvHQlyJ6VDKx1QYWougqs4/X8f7qPBwQyYX RP1VKJKA6W+OmZ1qjcSmzkZsGC7KbUAosi7Vw5Yr5JhHPyGcl/Mj0hpCeR0VdIyYKuiN PC+zBA8i5b4CnOQAHcHn/WEJgCTnV9LIzUYfDZmUIIx92gYPVDDT4aKRxIFFWdvOjCWq ZbV6h9mHO+pFqCHST5oRDTKlQlXMf6y2j8eBYPadHpKOBvhAFcQST3evBg9fPqGHGeMX bSLA==
X-Gm-Message-State: AOPr4FUo/RGKLCp6lxaJLchsD/qc8KIKecHX58VibSL14y/H999fC1ya8QMrs/Jk2/vbxj/uM/A2OuQhrSn37A==
MIME-Version: 1.0
X-Received: by 10.129.137.129 with SMTP id z123mr2172561ywf.101.1463521316792; Tue, 17 May 2016 14:41:56 -0700 (PDT)
Received: by 10.37.44.130 with HTTP; Tue, 17 May 2016 14:41:56 -0700 (PDT)
In-Reply-To: <573B8DEC.7040507@tzi.org>
References: <CABCOCHRRACvVXx2S_hZm2TxbvP48aO4Q4REkh0LFjmHkMkZ1Vg@mail.gmail.com> <BLUPR06MB17631B5C2248C854DFC47906FE480@BLUPR06MB1763.namprd06.prod.outlook.com> <CABCOCHTrqOYv-VZ2w73tE7PWyOd4yMbCK+yLarbFTRx3F4nyTQ@mail.gmail.com> <573B8DEC.7040507@tzi.org>
Date: Tue, 17 May 2016 14:41:56 -0700
Message-ID: <CABCOCHSjz5qbC4jNKBZ9itVsYb-Ub-J=z1N=rj1UGJ=w4OyfbQ@mail.gmail.com>
From: Andy Bierman <andy@yumaworks.com>
To: Carsten Bormann <cabo@tzi.org>
Content-Type: multipart/alternative; boundary="94eb2c06bf3835cd930533109ca0"
Archived-At: <http://mailarchive.ietf.org/arch/msg/core/byNC8c9z6HUlk8Sd8pWDlA8nirw>
Cc: Core <core@ietf.org>
Subject: Re: [core] Comments on draft-ietf-core-yang-cbor-00
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 May 2016 21:41:59 -0000

On Tue, May 17, 2016 at 2:32 PM, Carsten Bormann <cabo@tzi.org> wrote:

> Andy Bierman wrote:
> > but this seems broken.
>
> Ouch.
>
> I would have said the breakage is clearly on the XML side, except that
> we have the same problem between, say, integer and decimal64.
>
> I think the breakage we really need to avoid is where XML can tell the
> types apart and the CBOR mapping cannot.  Is there such a case?
>
>
No, I think the problems are with XML.
There are a few derived types like "xpath1.0" in ietf-yang-types.yang
that rely on prefix to namespace mappings that cannot be represented in
CBOR,
but I think the base types are OK.



Grüße, Carsten
>

Andy