Re: [core] Link target attributes in CoRAL (was: Review of CoRAL)

Klaus Hartke <hartke@projectcool.de> Sat, 10 November 2018 09:04 UTC

Return-Path: <hartke@projectcool.de>
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 4D19E130DED for <core@ietfa.amsl.com>; Sat, 10 Nov 2018 01:04:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_FAIL=0.001] autolearn=no 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 WtHKVXH47x2R for <core@ietfa.amsl.com>; Sat, 10 Nov 2018 01:04:42 -0800 (PST)
Received: from wp382.webpack.hosteurope.de (wp382.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:8597::]) (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 169D9130E13 for <core@ietf.org>; Sat, 10 Nov 2018 01:04:42 -0800 (PST)
Received: from mail-qk1-f171.google.com ([209.85.222.171]); authenticated by wp382.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1gLPC3-0004Ag-Kp; Sat, 10 Nov 2018 10:04:39 +0100
Received: by mail-qk1-f171.google.com with SMTP id y16so5827368qki.7 for <core@ietf.org>; Sat, 10 Nov 2018 01:04:39 -0800 (PST)
X-Gm-Message-State: AGRZ1gKjC/YCNxALyvu1tnZxLCVZzbu1oCqGPPIr0+lMyAwhBKiceDHs K1LQj6+KrQbMiPekM7cC4Mv8xhdLA6r+GoadyvU=
X-Google-Smtp-Source: AJdET5dCqi0TH8BtqepQ2m2BD4IfPqTAtLNx2ccc7iv2wfZUToHlA+oZgJURX97voQtDmkQr9svbsWPz9tSudSER7Rw=
X-Received: by 2002:ac8:16d8:: with SMTP id y24mr11993304qtk.253.1541840678717; Sat, 10 Nov 2018 01:04:38 -0800 (PST)
MIME-Version: 1.0
References: <CAAzbHvYk9dUvGmYsX1U=0qcU7330bYO6YjGAa51gFKMGGoy-Dg@mail.gmail.com> <20181105123604.GA9680@hephaistos.amsuess.com> <CAAzbHvZ=4GaPH6FXj4ZuOzMLrQbWUo-Oc6CUmiA4O2b3PhK-rA@mail.gmail.com> <CAAzbHvaSDzc62-dY-ALQxW6bGKS7avCv795-DUMh0PVRF+yaqw@mail.gmail.com> <20181106084134.GC4293@hephaistos.amsuess.com>
In-Reply-To: <20181106084134.GC4293@hephaistos.amsuess.com>
From: Klaus Hartke <hartke@projectcool.de>
Date: Sat, 10 Nov 2018 10:04:05 +0100
X-Gmail-Original-Message-ID: <CAAzbHvZ2AF92zbW6=gaHbr_x5-ANEinBeRTj70w419fd8mjOcA@mail.gmail.com>
Message-ID: <CAAzbHvZ2AF92zbW6=gaHbr_x5-ANEinBeRTj70w419fd8mjOcA@mail.gmail.com>
To: "Christian M. Amsüss" <christian@amsuess.com>
Cc: "core@ietf.org WG" <core@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-bounce-key: webpack.hosteurope.de; hartke@projectcool.de; 1541840682; bf532413;
X-HE-SMSGID: 1gLPC3-0004Ag-Kp
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/8FBCFhGaXAhUDUMheYG6NqYtqBA>
Subject: Re: [core] Link target attributes in CoRAL (was: Review of CoRAL)
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
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: Sat, 10 Nov 2018 09:04:44 -0000

Christian Amsüss wrote:
> Only defining the mapping for known target attributes would neatly get
> us rid of the issue of link attributes. Implementations could still be
> as simple as possible (ie. not even have an enumeration of known
> attributes) if they accept producing odd output on unspecified input,
> and follow the most common rule (map to attr:${key} "${value}") on all
> but the known whitespacers.

👍

> My expectation though is that processors that convert link-format to
> CoRAL would be less constrained devices (C2 or larger), and that smaller
> devices that still want to serve both would have something equivalent to
> hard-copies of both representation in ROM instead -- is that a
> reasonable one?

As long as a constrained device understands all attributes in its
</.well-known/core>, I see not problem with a constrained device
generating a CoRAL representation from a Link Format representation on
the fly (or vice versa) (or both from a more efficient in-memory
representation). If that's not the case, then storing hard-copies of
both representations in ROM sounds reasonable to me.

Klaus