Re: [Json] [rfc-i] sourcecode type="json"

John Levine <johnl@taugh.com> Wed, 27 October 2021 18:39 UTC

Return-Path: <johnl@iecc.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CC1F63A1059 for <json@ietfa.amsl.com>; Wed, 27 Oct 2021 11:39:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.85
X-Spam-Level:
X-Spam-Status: No, score=-1.85 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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=iecc.com header.b=Gqyy+GmQ; dkim=pass (2048-bit key) header.d=taugh.com header.b=mPV1Uum5
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 8Gt_H8Azx2zY for <json@ietfa.amsl.com>; Wed, 27 Oct 2021 11:39:03 -0700 (PDT)
Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (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 68A1B3A1051 for <json@ietf.org>; Wed, 27 Oct 2021 11:39:03 -0700 (PDT)
Received: (qmail 88051 invoked from network); 27 Oct 2021 18:39:01 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:cleverness; s=157f1.61799cc5.k2110; bh=nmjiKuLtKdwf1MX4BcX1BLc6fOz/xDJSEvcEiWvK+mQ=; b=Gqyy+GmQC9lkJvq6ZlIfbsxRHdm31LAwmsgWV6W0PYDBfJ09xDQJ1juGm02g03uTwX44WAX0qetzNxkS1N8EO4s5auqSE9zxfcSiVNTFm29Sb0IrENM6/pTmj5egddRaZodrMMdfscI1THseuYAo9IELBdlzQWiqf4Qmu3Ll3uY/CulrXoa1ZUoMcc+c4WcZ9CI3rQ9CmUWV38zKFTFA7OHq4Biigx+pyeyp00if3cFPlxJZg8jMzXJgi84tsrMBcfZbVMlikewgsJkaOFRrs3QzE/B48EEv3K62ogER3t/bz2B8/6i+9//XuK2soN8GBtuH6EPys7H2wM3p46302w==
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=taugh.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:cleverness; s=157f1.61799cc5.k2110; bh=nmjiKuLtKdwf1MX4BcX1BLc6fOz/xDJSEvcEiWvK+mQ=; b=mPV1Uum5f0SZl0jKBQN+f4dOL3vCKqPMuig6NZ4k2KIuMmezCV8OxM0CJeHTEF8vBHlH+4hWPOdD8KUy42Btzj//Z/BvhroObo8RA1k+I9g/j0VFJsBlPUfwGuhY6mJOK0KGhVLOZN255dvo98HsCt1UtX75aPWsTvae/gVUEKLamTCsQkO5nJJHiq+5HJG3QlG+1tYHmwZjvi76pqdeQh2/yzcIK/KtFMSeBX7VqDmeglsV3Usot6DsbZft5u/kprsA606kaTuu3oZRS00brC2Ew5fOGykjuGfGSQNK3PHsPvbWtzZ80nT2OoJXlDgTUd6P6nSWokxJl+0h9Mfakg==
Received: from ary.qy ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTPS (TLS1.2 ECDHE-RSA AES-256-GCM AEAD) via TCP6; 27 Oct 2021 18:39:01 -0000
Received: by ary.qy (Postfix, from userid 501) id C2FF82F215F6; Wed, 27 Oct 2021 14:39:00 -0400 (EDT)
Date: Wed, 27 Oct 2021 14:39:00 -0400
Message-Id: <20211027183900.C2FF82F215F6@ary.qy>
From: John Levine <johnl@taugh.com>
To: rfc-interest@rfc-editor.org, json@ietf.org
Cc: cabo@tzi.org
In-Reply-To: <86844357-A8C7-4590-B8DC-D801E223A60A@tzi.org>
Organization: Taughannock Networks
X-Headerized: yes
Cleverness: minimal
Mime-Version: 1.0
Content-type: text/plain; charset="utf-8"
Content-transfer-encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/8dV91pk2aJ6nvW6m9rPn52MpHdI>
Subject: Re: [Json] [rfc-i] sourcecode type="json"
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "JavaScript Object Notation \(JSON\) WG mailing list" <json.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json>, <mailto:json-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/json/>
List-Post: <mailto:json@ietf.org>
List-Help: <mailto:json-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json>, <mailto:json-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 27 Oct 2021 18:39:09 -0000

It appears that Carsten Bormann  <cabo@tzi.org> said:
>The question is really why are we marking up sourcecode as to its type in the first place.
>
>One need would be for rendering. ...

>With FDT languages such as ABNF or CDDL, extraction is needed; ...

>Apart from that, the needs I’m more interested in are as a support for authoring.

That seems about right.  If we really care about extraction, we'd need attributes with
more clues about how to do it since in most languages unlike ABNF, the order in which
you paste fragments together makes a difference, and you often need hints about what
version of the language, e.g. python 2 vs python 3.

I don't think we should try and solve this problem now, just throw it on the heap of
things to donsider for xml2rfc v4.

R's
John