Re: [netmod] Alexey Melnikov's Discuss on draft-ietf-netmod-module-tags-07: (with DISCUSS)

Randy Presuhn <randy_presuhn@alumni.stanford.edu> Tue, 18 February 2020 00:31 UTC

Return-Path: <randy_presuhn@alumni.stanford.edu>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 26BDC120866 for <netmod@ietfa.amsl.com>; Mon, 17 Feb 2020 16:31:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.92
X-Spam-Level:
X-Spam-Status: No, score=-1.92 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] 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 T3IS562q05_L for <netmod@ietfa.amsl.com>; Mon, 17 Feb 2020 16:31:11 -0800 (PST)
Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (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 C9F4712002E for <netmod@ietf.org>; Mon, 17 Feb 2020 16:31:11 -0800 (PST)
Received: by mail-pf1-f177.google.com with SMTP id 185so9738410pfv.3 for <netmod@ietf.org>; Mon, 17 Feb 2020 16:31:11 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=sYc9u1vxW8jHNYWDfooRvHFP3q1prEG1cvefx13p9CQ=; b=emkB1dd+GvPnQFoh3Pi9ws1q01mkPMsUjlYq7FKGqasnPKZqC8CTbsTQ6MKxDJ35gV 0KccEEwtE/Oo9bXsG3nsr1fvf5qGtBa2MN8WSQl7yqDom6g0l7UoLRP6+Ln5IbubX0V/ sq53UaTuY0B+81AeqFOsQj2rbgYQibvt57mxsItMU6Ho6AfMsSQZyTU+MVXip2F0QT4T JFjSflxslvmwDbs8U2GYnxHQ3TWAhToLb8XReZ8d2LoloRoXKrEcfvFcFwiVR4eOXTRt 7SNqNznSgAJD18cGPhYE+S3SroD3OXTtcdPKr977YPIA0FnYJvUssNKACBa1o6xcOavj l5QQ==
X-Gm-Message-State: APjAAAXUnLFkz8NPlWh249KyMfz0llK0D4x7CaJU63YHBOwbvRCCVSPG so9MEqK/V8Z52MzshMvphHiDbhRwziY=
X-Google-Smtp-Source: APXvYqypCRaE0X8JvJBcZ+QU1Nz87z3jeHS3L5D60IPAeK2Fx+MsWu+ELBB9WNdzPWDHgFXA4Wb84A==
X-Received: by 2002:a62:fc11:: with SMTP id e17mr2059019pfh.207.1581985870873; Mon, 17 Feb 2020 16:31:10 -0800 (PST)
Received: from [192.168.1.106] (c-73-231-235-186.hsd1.ca.comcast.net. [73.231.235.186]) by smtp.gmail.com with ESMTPSA id p23sm2031003pgn.92.2020.02.17.16.31.09 for <netmod@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Feb 2020 16:31:10 -0800 (PST)
To: netmod@ietf.org
References: <155499006434.22705.5858614581630974980.idtracker@ietfa.amsl.com> <7F3B9E7F-6AD8-4801-AE60-9F2D704DC69B@chopps.org> <2ee6b71c-bd2c-4676-9e14-cb240c6845c9@www.fastmail.com> <MN2PR11MB43668E4C0863B8A61857CE0CB5150@MN2PR11MB4366.namprd11.prod.outlook.com> <714842CF-A65A-40FD-A62D-6FA7E1A6801F@chopps.org> <C1446662-2320-4158-B34B-3E2D67369F48@chopps.org> <9FECF49A-65E5-436F-973A-7538CFC974E8@chopps.org> <14832a78-ff8c-b923-09ba-207c2cf01362@alumni.stanford.edu> <F22DF063-E77B-4384-AD2E-157CC1DC479C@chopps.org> <3a538bc4-b93e-2027-7870-d59e8609944b@alumni.stanford.edu> <DF98AB41-C1DD-4A43-9C22-222D018A213D@chopps.org> <d79d37eb-14ec-a5ab-6161-971a0c6fd57a@alumni.stanford.edu> <BE06C751-D2E1-4797-8E22-9D7A87C0D616@chopps.org>
From: Randy Presuhn <randy_presuhn@alumni.stanford.edu>
Message-ID: <58e7afc1-9cc9-7f34-7692-3b58387d5029@alumni.stanford.edu>
Date: Mon, 17 Feb 2020 16:31:33 -0800
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0
MIME-Version: 1.0
In-Reply-To: <BE06C751-D2E1-4797-8E22-9D7A87C0D616@chopps.org>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
X-Antivirus: Avast (VPS 200217-0, 02/17/2020), Outbound message
X-Antivirus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/KRfUA7F4AzO74q2962n5llZ0Q-w>
Subject: Re: [netmod] Alexey Melnikov's Discuss on draft-ietf-netmod-module-tags-07: (with DISCUSS)
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 18 Feb 2020 00:31:13 -0000

Hi -

On 2/17/2020 2:14 PM, Christian Hopps wrote:
...
> If you are talking about the property categories (where I see 'Z' 
> mentioned as "All separators") then there doesn't appear to be a 
> "lower means include, upper means exclude" relationship. Also it 
> appears that to refer to one of these things the syntax is actually 
> "\P{Z}" or "\p{Z}" not just "Z". So translating maybe that's "[\P{Z} 
> ]"? I see nothing that defines how "catEsc" (\p{}) vs "compEsc" (\P{}) 
> are different, but maybe the upper here means exclude.

My error.  You're right that "[\P{Z} ]" is what the grammar would require
to eliminate all the space-like things while still allowing #x20 space.
The problem with "\S" is that the only kind of space it eliminates is #x20,
(which you then add back in in the regular expression) while Unicode has
a whole menagerie of other space-like creatures one might well want to
exclude from tags while still permitting #x20, as well as lots of other 
stuff
that is probably a bad idea to permit in tags.  That said...

> I'm more inclined to just ditch any pattern or restriction the more 
> this gets discussed. Let the user do what they want. If they want to 
> include crazy unicode stuff (almost certainly they dont) then I guess 
> that's what they want.

Yeah, doing so is almost a design pattern in Yang:  try to constrain 
things with
regular expressions, find out the expression is either too limiting or 
allows too
many invalid strings, then give up.  :-)  No judgement here - it is what 
it is, and
"done" has to take precedence over "perfect."

Randy