From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Daniel Colascione" Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 938d252 4/4: Make regex matching reentrant; update syntax during match Date: Mon, 18 Jun 2018 10:49:46 -0700 Message-ID: <1de38eca2662563e9e08006c88a6d2e5.squirrel@dancol.org> References: <20180616204650.8423.73499@vcs0.savannah.gnu.org> <20180616204653.86AFC203CB@vcs0.savannah.gnu.org> <04e89d2beffedcc102b811863910c1ec.squirrel@dancol.org> <20180618115941.4f22a9d3@jabberwock.cb.piermont.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1529344155 11541 195.159.176.226 (18 Jun 2018 17:49:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 18 Jun 2018 17:49:15 +0000 (UTC) User-Agent: SquirrelMail/1.4.23 [SVN] Cc: Daniel Colascione , Stefan Monnier , emacs-devel@gnu.org To: "Perry E. Metzger" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 18 19:49:11 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 1fUyH6-0002kS-8w for ged-emacs-devel@m.gmane.org; Mon, 18 Jun 2018 19:49:08 +0200 Original-Received: from localhost ([::1]:36321 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUyJC-00059g-0v for ged-emacs-devel@m.gmane.org; Mon, 18 Jun 2018 13:51:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUyHo-0004iO-S5 for emacs-devel@gnu.org; Mon, 18 Jun 2018 13:49:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUyHo-0008Lx-3P for emacs-devel@gnu.org; Mon, 18 Jun 2018 13:49:52 -0400 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:36152) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fUyHn-0008Kq-P5 for emacs-devel@gnu.org; Mon, 18 Jun 2018 13:49:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:To:From:Subject:Date:References:In-Reply-To:Message-ID; bh=XKikLtudAuPGfxDqY9vRkYPRd3JkpU+vftdy9p+6GgM=; b=YAp1SwsrlY9wMHJIpgILcoDr+4irvra4oevd9F/AJVSpyU9Oj8Je+446TtfA3lhxLTJ1zVRD2iS4ZjLqVYQBJXkVJyD5Dve3qYv+7G5+JJ4QFsFTuLu+IS8fAWW/XOqqV0n5JOhpty2c7sE4nXj8lUoEKmc+j+weYjmYdukujIJ085yONi+8boC1F0KkKzUP78MAH6vgWsQwYocubcVaYUr6itaNzpAs/4xaJ9nj3zcqztjaPuvZOSfrKiilJ1vAOg8kEweo0ukbLJYMU60qauSxXrcDi5PcrSWVivxIKLaOp1CaYcKtzS+R9Nzt9wvj4ORYftPI7j60ixzktOOUjA==; Original-Received: from localhost ([127.0.0.1] helo=dancol.org) by dancol.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fUyHi-0005v5-8Q; Mon, 18 Jun 2018 10:49:46 -0700 Original-Received: from 127.0.0.1 (SquirrelMail authenticated user dancol) by dancol.org with HTTP; Mon, 18 Jun 2018 10:49:46 -0700 In-Reply-To: <20180618115941.4f22a9d3@jabberwock.cb.piermont.com> X-Priority: 3 (Normal) Importance: Normal X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 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:226469 Archived-At: > On Sun, 17 Jun 2018 11:51:33 -0700 "Daniel Colascione" > wrote: >> But anyway, I think the regex code needs a major overhaul. I was >> actually thinking about forking and vendoring RE2. Granted, having >> done that, you'd need a C++ compiler to build Emacs, but it's >> probably one of the better actively-maintained DFA-based regex >> engines around. > > I think needing C++ makes this less than the most obvious choice. Why? C++ is everywhere these days. I'm in no hurry to move the Emacs core to C++, but requiring a C++ compiler for the sake of some dependency shouldn't be a problem. It's good enough for GDB. > > 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)