Re: [netmod] regular expression flavours (again)

2019-06-14 Thread Robert Varga
On 14/06/2019 11:56, Carsten Bormann wrote: > Now the main deployability problem with W3C XSD regexes is that they added > some functionality that is sorely missing in other dialects, such as > character class subtraction, so it is more than an hour of work to write a > converter from XSD

Re: [netmod] regular expression flavours (again)

2019-06-14 Thread Carsten Bormann
On Jun 14, 2019, at 12:08, Rob Wilton (rwilton) wrote: > > Or perhaps we could define a regex language that worked with normal > implementations without requiring any conversion. Unlikely, as it is easy to write an regex that inadvertently triggers some “feature" in a specific flavor. So you

Re: [netmod] regular expression flavours (again)

2019-06-14 Thread Rob Wilton (rwilton)
> -Original Message- > From: Carsten Bormann > Sent: 14 June 2019 10:57 > To: Rob Wilton (rwilton) > Cc: Juergen Schoenwaelder ; Robert > Varga ; NETMOD WG > Subject: Re: [netmod] regular expression flavours (again) > > On Jun 14, 2019, at 11:29,

Re: [netmod] regular expression flavours (again)

2019-06-14 Thread Carsten Bormann
On Jun 14, 2019, at 11:29, Rob Wilton (rwilton) wrote: > > I'm sure that someone can post an XKCD of why this is a bad idea  Yeah, going ahead and standardizing another regex dialect that is subtly incompatible with everything else is exactly what we need. We could even make sure that

Re: [netmod] regular expression flavours (again)

2019-06-14 Thread Rob Wilton (rwilton)
> -Original Message- > From: netmod On Behalf Of Juergen Schoenwaelder > Sent: 13 June 2019 15:07 > To: Robert Varga > Cc: NETMOD WG > Subject: Re: [netmod] regular expression flavours (again) > > > > > Can we engineer a workable solution for the

Re: [netmod] regular expression flavours (again)

2019-06-14 Thread Carsten Bormann
On Jun 14, 2019, at 09:58, Ladislav Lhotka wrote: > > I agree with all this but, apparently, OpenConfig people don't care too much. > And since they are much more agile than the IETF, our views may soon become > irrelevant. If this becomes our attitude, we already are irrelevant. I have no

Re: [netmod] regular expression flavours (again)

2019-06-14 Thread Ladislav Lhotka
On Wed, 2019-06-12 at 11:25 +0200, Juergen Schoenwaelder wrote: > On Wed, Jun 12, 2019 at 10:01:30AM +0200, Ladislav Lhotka wrote: > > > I think it is very unfortunate that OpenConfig folks use POSIX regular > > expressions instead of XSD. This of course causes confusion, see e.g. this > > PR: >

Re: [netmod] regular expression flavours (again)

2019-06-13 Thread Juergen Schoenwaelder
On Thu, Jun 13, 2019 at 03:31:49PM +0200, Robert Varga wrote: > On 12/06/2019 11:25, Juergen Schoenwaelder wrote: > > That said, they do seem to declare something like > > oc-ext:regexp-posix; but it would have been much smarter to use for > > example oc-posix:regex instead of changing the

Re: [netmod] regular expression flavours (again)

2019-06-13 Thread Martin Bjorklund
Robert Varga wrote: > On 12/06/2019 11:25, Juergen Schoenwaelder wrote: > > That said, they do seem to declare something like > > oc-ext:regexp-posix; but it would have been much smarter to use for > > example oc-posix:regex instead of changing the semantics of the > > pattern statement. > >

Re: [netmod] regular expression flavours (again)

2019-06-13 Thread Robert Varga
On 12/06/2019 11:25, Juergen Schoenwaelder wrote: > That said, they do seem to declare something like > oc-ext:regexp-posix; but it would have been much smarter to use for > example oc-posix:regex instead of changing the semantics of the > pattern statement. Yes, this would be preferable, but it

Re: [netmod] regular expression flavours (again)

2019-06-13 Thread Robert Varga
On 12/06/2019 13:01, Ladislav Lhotka wrote: >>> What I meant was rather something like >>> >>> pattern-language "POSIX"; >>> Yeah, that is what I proposed here: https://github.com/openconfig/public/issues/44#issuecomment-416320334 >> But depending on how many pattern languages are supported,

Re: [netmod] regular expression flavours (again)

2019-06-12 Thread Ladislav Lhotka
On Wed, 2019-06-12 at 09:53 +, Rob Wilton (rwilton) wrote: > Hi Lada, > > > -Original Message- > > From: Ladislav Lhotka > > Sent: 12 June 2019 10:40 > > To: Rob Wilton (rwilton) ; NETMOD WG > > Subject: Re: [netmod] regular express

Re: [netmod] regular expression flavours (again)

2019-06-12 Thread Rob Wilton (rwilton)
Hi Lada, > -Original Message- > From: Ladislav Lhotka > Sent: 12 June 2019 10:40 > To: Rob Wilton (rwilton) ; NETMOD WG > Subject: Re: [netmod] regular expression flavours (again) > > Hi Rob, > > On Wed, 2019-06-12 at 09:25 +, Rob Wilton (

Re: [netmod] regular expression flavours (again)

2019-06-12 Thread Ladislav Lhotka
cking it. Lada > > Thanks, > Rob > > > > -Original Message- > > From: netmod On Behalf Of Ladislav Lhotka > > Sent: 12 June 2019 09:02 > > To: NETMOD WG > > Subject: [netmod] regular expression flavours (again) > > > > Hi, >

Re: [netmod] regular expression flavours (again)

2019-06-12 Thread Rob Wilton (rwilton)
uld become part of the YANG standard. Thanks, Rob > -Original Message- > From: netmod On Behalf Of Ladislav Lhotka > Sent: 12 June 2019 09:02 > To: NETMOD WG > Subject: [netmod] regular expression flavours (again) > > Hi, > > I think it is very unfortunate th

Re: [netmod] regular expression flavours (again)

2019-06-12 Thread Juergen Schoenwaelder
On Wed, Jun 12, 2019 at 10:01:30AM +0200, Ladislav Lhotka wrote: > I think it is very unfortunate that OpenConfig folks use POSIX regular > expressions instead of XSD. This of course causes confusion, see e.g. this PR: > > https://github.com/CZ-NIC/yangson/pull/22 > > Given the popularity of

[netmod] regular expression flavours (again)

2019-06-12 Thread Ladislav Lhotka
Hi, I think it is very unfortunate that OpenConfig folks use POSIX regular expressions instead of XSD. This of course causes confusion, see e.g. this PR: https://github.com/CZ-NIC/yangson/pull/22 Given the popularity of OpenConfig models, it seems to me that it would be better if YANG somehow