Re: [precis] draft-whited-precis-test-vectors-00

Sam Whited <sam@samwhited.com> Thu, 06 December 2018 16:27 UTC

Return-Path: <sam@samwhited.com>
X-Original-To: precis@ietfa.amsl.com
Delivered-To: precis@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 91060130EBF for <precis@ietfa.amsl.com>; Thu, 6 Dec 2018 08:27:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, 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=samwhited.com header.b=k/YQYYrc; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=ZkdwIXMa
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 d4ISetJ5wpsK for <precis@ietfa.amsl.com>; Thu, 6 Dec 2018 08:27:15 -0800 (PST)
Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5652F130E74 for <precis@ietf.org>; Thu, 6 Dec 2018 08:27:15 -0800 (PST)
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id CE1A121A02; Thu, 6 Dec 2018 11:27:13 -0500 (EST)
Received: from web1 ([10.202.2.211]) by compute4.internal (MEProxy); Thu, 06 Dec 2018 11:27:13 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samwhited.com; h=message-id:from:to:cc:mime-version:content-transfer-encoding :content-type:in-reply-to:date:references:subject; s=fm1; bh=7YQ XG1H/cSsNFJOJicx6rj608eheH+vVZoViivPgQEs=; b=k/YQYYrcZWkGer+z/h2 bhrdC0WXjvHs9W3uixFuqE7jMZuLZ5nYQgVjDI7J8WaugDImRLxCYUqbdRmWRJFd lBxqpFld2EX5mTz12btYjOY3GczhCoQ26MHWWwD1n/S+M2dYoe8Pr/RcbN9zAIai 3C68esOk/8LHwFBq2nNsmCuC5i9uc8CHCiqMi1uRw/AidlCu+UznnMCBFg+VmT6d YzizvfZswondg/yOwX7VYmhow3pknANhs8QqKR7MmwSW+9+aRjoAh4Z7UAlYSGgB BVS3tFdcDE83CK38ZwZDSNMiFTx7zJFrWwwm3L6306mtPcsxwWR1te4mn/AIeq67 xug==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=7YQXG1H/cSsNFJOJicx6rj608eheH+vVZoViivPgQ Es=; b=ZkdwIXMa3t4sWBMoAgPgKIOpjdvHB12s0Xg9HQdPbdgI9dkiTCHq3Wqtd a0oMcvaN1nlP34G09tvBxh3LxY51C1OsyXdkYOlZQOdv9pGnWPeV+sXxOAfKqily 4/dHbfnPU8ql8xiLPxPrujkMt4+y+PgZISpXaljcl9HeXrkI8TETSL8ka98F5RsJ PmOkHRMlXJiczmKp2ozui3FX0ZYUodj9XhNMpYyJPUMGvYknKM7b/KvVJtKoietU CmgyNJzCFBZyPng32d2oTXxSeTFne816mrnbNov0rcyzfeIeLvLuk3d1skRyCdMB CYjfppAfamAaKwEdk3IpIn+KuR5cg==
X-ME-Sender: <xms:4E0JXBKgcHRbu2Gl_4l-QQGFWMoPWp98SfCuefhq2kL7o61cIddPVA>
X-ME-Proxy: <xmx:4E0JXNOHNtBu_195CFLIVb9ELUOYKLv4CAXXoinrcNG_ffB9YGwO4Q> <xmx:4E0JXO2NM9kScVIc7PZkLtQmaztgPibig9xZ0YtpSciGL6lwdfcdOw> <xmx:4E0JXMrnaA6vj2-OIcjjGA3w8WLEu0EwCBpuknTgrNh0wwc5avm8hg> <xmx:4E0JXOs1Z2gFtIvqultKxL9PpxTw-lZXmPi738cLAe2rNEOmizMHVw> <xmx:4E0JXHLRpUPFg9e1gwmM9Xgcs4uDidZ6jC7vaQef9Xb3rtTP_isj3w> <xmx:4U0JXH4VOAWOOsghRMy8h7hRoQBKtxAdB9Q8-u06-WuI3SouqQOt4Q>
Received: by mailuser.nyi.internal (Postfix, from userid 99) id D793C94282; Thu, 6 Dec 2018 11:27:12 -0500 (EST)
Message-Id: <1544113632.3179679.1601079352.0B318044@webmail.messagingengine.com>
From: Sam Whited <sam@samwhited.com>
To: Tom Worster <fsb@thefsb.org>
Cc: precis@ietf.org, Marc Blanchet <246aberdeen@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
X-Mailer: MessagingEngine.com Webmail Interface - ajax-2f590f9a
In-Reply-To: <6760B800-B1C4-4F77-907B-2F671CA39775@thefsb.org>
Date: Thu, 06 Dec 2018 10:27:12 -0600
References: <1537293673.1189998.1512476568.041D4D88@webmail.messagingengine.com> <2A356330-3E79-40CC-8A62-25790BFE049E@gmail.com> <1544109351.3157581.1600994568.3C5C4DD0@webmail.messagingengine.com> <6760B800-B1C4-4F77-907B-2F671CA39775@thefsb.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/precis/eia9RjZLnEdVpaaOU1fCCoTG1mQ>
Subject: Re: [precis] draft-whited-precis-test-vectors-00
X-BeenThere: precis@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Preparation and Comparison of Internationalized Strings <precis.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/precis>, <mailto:precis-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/precis/>
List-Post: <mailto:precis@ietf.org>
List-Help: <mailto:precis-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/precis>, <mailto:precis-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 06 Dec 2018 16:27:26 -0000

On Thu, Dec 6, 2018, at 10:12, Tom Worster wrote:
> First, I also think this work is valuable but I don't understand how the 
> ID is supposed to proceed. The point of bringing it to IETF is to get 
> its authority behind the statement that these specific vectors test 
> conformance to the PRECIS RFCs. How can the IETF give this without 
> restarting the WG to push the ID forwards as a Standards Track RFC? I 
> don't think the independent submission review process can.

I don't really understand the process, but this makes sense to me and I think you're probably right. I'd be curious to hear if other IETF people who actually understand how any of this works agree or not though.

> Second, my experience is that formatting of test vectors is kinda all 
> over the place in RFCs. I would not look there for guidance. Idk what 
> XML format you refer to but I wouldn't want to go down any XML road as 
> either producer or consumer.

Sorry, I meant the rfc2xml format; I'm not really sure if there's a name for that. I was originally writing nroff format directly, but people kept telling me I should use the XML format for best results. Either way, I couldn't find a decent way to support the vectors without them wrapping awkwardly or being hard to read in the fixed-width formats that get generated. 

> I suggest you devise the simplest 
> machine-readable file format that you can imagine and publish it 
> yourself, e.g. as a Github gist. Anyone can then easily transform that 
> into any other format, for documentation, for a unit test data provider, 
> or whatever. I think this serves your and our needs best even in the 
> case that IETF would adopt the ID, since you can use the file to 
> generate IETF-format docs.

I'm actually already doing this (more or less): they're being generated from the unit tests in my Go implementation of PRECIS with a few minor changes. I should rework the tool that does the conversion at some point and publish it somewhere. However, this doesn't solve the formatting problems.

> For example, I was recently using this wonderful text file 
> https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt which is 
> both documentation and machine readable. Your ID is machine readable 
> (what isn't these days?) but it isn't so simple to either read or write. 
> In your position I'd look at UCD files for format ideas.

I would love it if the ID could be easily machine readable too, but I couldn't find a good way to do this. I can easily spit out a different format from the tools that convert the Go unit tests to xml2rfc format though, so I could probably publish something else like the UCD files if it would be helpful to others.

Thanks for the feedback and suggestions!

—Sam

-- 
Sam Whited
sam@samwhited.com