From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Perry E. Metzger" Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 938d252 4/4: Make regex matching reentrant; update syntax during match Date: Tue, 19 Jun 2018 10:30:02 -0400 Message-ID: <20180619103002.4f000018@jabberwock.cb.piermont.com> References: <20180616204650.8423.73499@vcs0.savannah.gnu.org> <20180616204653.86AFC203CB@vcs0.savannah.gnu.org> <04e89d2beffedcc102b811863910c1ec.squirrel@dancol.org> <20180618115941.4f22a9d3@jabberwock.cb.piermont.com> <1de38eca2662563e9e08006c88a6d2e5.squirrel@dancol.org> <20180619094005.11465a87@jabberwock.cb.piermont.com> <20180619094442.41287e4b@jabberwock.cb.piermont.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1529418494 14280 195.159.176.226 (19 Jun 2018 14:28:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2018 14:28:14 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 19 16:28:10 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVHc8-0003aT-QP for ged-emacs-devel@m.gmane.org; Tue, 19 Jun 2018 16:28:08 +0200 Original-Received: from localhost ([::1]:42990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVHeF-00046Q-US for ged-emacs-devel@m.gmane.org; Tue, 19 Jun 2018 10:30:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVHe3-00041l-Rd for emacs-devel@gnu.org; Tue, 19 Jun 2018 10:30:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVHdz-0008WG-Tw for emacs-devel@gnu.org; Tue, 19 Jun 2018 10:30:07 -0400 Original-Received: from hacklheber.piermont.com ([166.84.7.14]:57728) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fVHdz-0008UV-OY for emacs-devel@gnu.org; Tue, 19 Jun 2018 10:30:03 -0400 Original-Received: from snark.cb.piermont.com (localhost [127.0.0.1]) by hacklheber.piermont.com (Postfix) with ESMTP id D396C19F; Tue, 19 Jun 2018 10:30:02 -0400 (EDT) Original-Received: from jabberwock.cb.piermont.com (jabberwock.cb.piermont.com [10.160.2.107]) by snark.cb.piermont.com (Postfix) with ESMTP id AEF772DEC76; Tue, 19 Jun 2018 10:30:02 -0400 (EDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 166.84.7.14 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:226506 Archived-At: On Tue, 19 Jun 2018 06:49:03 -0700 Daniel Colascione wrote: > On 06/19/2018 06:44 AM, Perry E. Metzger wrote: > > On Tue, 19 Jun 2018 09:40:05 -0400 "Perry E. Metzger" > > wrote: > >> On Mon, 18 Jun 2018 10:49:46 -0700 "Daniel Colascione" > >> wrote: > >>>> I think the right thing would be to use TRE if we could get > >>>> Ville Laurikari to let someone else be the maintainer. Sadly > >>>> right now it seems unmaintained and has been for years, but > >>>> it's fast, complete, and has the ability to handle things like > >>>> gap buffers. > >>> > >>> Last time I looked, many years ago, there were several bugs (or > >>> differences between TRE and POSIX anyway) > >> > >> Bugs yes, but the POSIX conformance was pretty strict. As I > >> said, he seemed to have abandoned the thing, but the bones are > >> pretty good. Someone could just fork it and implement all the > >> patches people have been contributing that have been languishing > >> in the github issue trackers. > > > > Oh, and re2 isn't built for POSIX compliance. It has no constructs > > that require backtracking etc. > > No DFA engine can do backtracking. Correct, but there are regexp libraries that will switch between DFA and non-DFA implementations depending on whether the regexp has constructs in it that require backtracking. Perry -- Perry E. Metzger perry@piermont.com