From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a02:1218:: with SMTP id i24mr3411053jad.65.1553185029224; Thu, 21 Mar 2019 09:17:09 -0700 (PDT) X-Received: by 2002:a9d:2c28:: with SMTP id f37mr2912864otb.126.1553185028760; Thu, 21 Mar 2019 09:17:08 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!78no143380itl.0!news-out.google.com!y88ni154ita.0!nntp.google.com!78no143379itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 21 Mar 2019 09:17:08 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=176.130.29.212; posting-account=6yLzewoAAABoisbSsCJH1SPMc9UrfXBH NNTP-Posting-Host: 176.130.29.212 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <30bfef4b-d568-4f38-a016-082c432eb8e4@googlegroups.com> Subject: Re: Benchmarks Game - regex-redux - help needed From: briot.emmanuel@gmail.com Injection-Date: Thu, 21 Mar 2019 16:17:09 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2395 X-Received-Body-CRC: 826649513 Xref: reader01.eternal-september.org comp.lang.ada:55917 Date: 2019-03-21T09:17:08-07:00 List-Id: GNAT.Regexp is a very basic package that only handles a subset of regexps. = It does so without backtracking, so it has a fairly predictable run time. GNAT.Regpat is more capable (translated from an earlier version of the perl= regexp engine). It is however not as optimized or as extended as pcre is. = The big lacking thing, to my mind, is support for unicode, in this day and = age (wasn't an issue 17 years ago :-). I always wanted to add a binding to pcre in either the GNAT runtime (likely= replacing GNAT.Regpat) or GNATCOLL. This should be fairly simple, as the A= PI itself is fairly limited. That would give Ada much more powerful regexps= , similar to what all other languages out there have. Once thing that made it difficult in the beginning was building and packagi= ng an extra external library, but I believe pcre is now a mandatory depende= ncy for gcc anyway, so it is already distributed... pcre is the de-facto standard for pcre nowadays. Maybe even Perl has now mo= ved to it, though I am not sure. Every one else uses pcre.