Re: [core] Report on first Resource Directory plugtest

Carsten Bormann <cabo@tzi.org> Tue, 17 April 2018 15:50 UTC

Return-Path: <cabo@tzi.org>
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 56D6C124319 for <core@ietfa.amsl.com>; Tue, 17 Apr 2018 08:50:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level:
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no
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 Yp-uoXQ9NP7Q for <core@ietfa.amsl.com>; Tue, 17 Apr 2018 08:50:43 -0700 (PDT)
Received: from mailhost.informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) (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 C7AF21200FC for <core@ietf.org>; Tue, 17 Apr 2018 08:50:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de
Received: from submithost.informatik.uni-bremen.de (submithost.informatik.uni-bremen.de [134.102.201.11]) by mailhost.informatik.uni-bremen.de (8.14.5/8.14.5) with ESMTP id w3HFo3mt009182; Tue, 17 Apr 2018 17:50:03 +0200 (CEST)
Received: from client-0049.vpn.uni-bremen.de (client-0049.vpn.uni-bremen.de [134.102.107.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by submithost.informatik.uni-bremen.de (Postfix) with ESMTPSA id 40QV7b1ChhzDWcF; Tue, 17 Apr 2018 17:50:03 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <011601d3d4eb$0abcba20$20362e60$@augustcellars.com>
Date: Tue, 17 Apr 2018 17:50:02 +0200
Cc: "\"Christian M. Amsüss\"" <christian@amsuess.com>, peter van der Stok <consultancy@vanderstok.org>, Core WG mailing list <core@ietf.org>
X-Mao-Original-Outgoing-Id: 545673000.7351021-371eb1b2ab0bbb689e5ac4891d4097bc
Content-Transfer-Encoding: quoted-printable
Message-Id: <896368D2-5353-437F-A87C-51C76D7AA797@tzi.org>
References: <20180413110301.GL18144@hephaistos.amsuess.com> <29B20CA2-4179-4BBA-A0A7-5365C5A2BE85@tzi.org> <011601d3d4eb$0abcba20$20362e60$@augustcellars.com>
To: Jim Schaad <ietf@augustcellars.com>
X-Mailer: Apple Mail (2.3445.5.20)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/uNYLt58bjFxvuP_fd2DTMdn_MtQ>
Subject: Re: [core] Report on first Resource Directory plugtest
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.22
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 Apr 2018 15:50:46 -0000

Hi Jim,

>> In updating a document, we can go as far as we want.
>> But of course we want to be reasonable and make sure we don’t invalidate
>> existing implementations of link-format.
>> Instead of doing a link-format v2, the idea is live with v1 and move over to
>> JSON/CBOR.
> 
> Doing this is going to make my life as an implementor really a mess.  I will no longer be able to simply have a single representation of the internal data structure and do the parsing as serialization to a common format.  I am now going to need to remember what the original representation was and do the serializations differently based on that value.   In addition to this, all of my internal calls to setup the link format to begin with need to have this distinction so that things get serialized correctly.  

That would indeed be a disaster, and I thought we can avoid all of this.  
My assumption was that we can move forward the data model while staying compatible with the older serialization.

> What would this mean for serializing out /.well-known/core - are the meanings different if one serializes to cbor as opposed to link-format?  

If we don’t want to carry forward the idiosyncrasies of link-format to JSON/CBOR, that is the inevitable result.  
But this should be doable with a small piece of code in the serializer, not by having two different data models.

Grüße, Carsten