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: regex.c simplification Date: Sat, 16 Jun 2018 09:42:37 -0700 Message-ID: <8bf73ca6846a2a0ee25e81d7ec8faf17.squirrel@dancol.org> References: <20180616123549.3203b454@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 1529167241 26484 195.159.176.226 (16 Jun 2018 16:40:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2018 16:40:41 +0000 (UTC) User-Agent: SquirrelMail/1.4.23 [SVN] Cc: Daniel Colascione , emacs-devel@gnu.org To: "Perry E. Metzger" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 16 18:40:36 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 1fUEFg-0006jt-0F for ged-emacs-devel@m.gmane.org; Sat, 16 Jun 2018 18:40:36 +0200 Original-Received: from localhost ([::1]:52183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUEHl-0006qJ-Ho for ged-emacs-devel@m.gmane.org; Sat, 16 Jun 2018 12:42:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUEHf-0006qB-1e for emacs-devel@gnu.org; Sat, 16 Jun 2018 12:42:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUEHe-00030N-8S for emacs-devel@gnu.org; Sat, 16 Jun 2018 12:42:39 -0400 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:49022) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fUEHd-000305-Vt for emacs-devel@gnu.org; Sat, 16 Jun 2018 12:42:38 -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=49gfgKuUza/Ud/gOYOXMRGYMBcaFxTDT/KhwtKvd6K0=; b=i2u0OkSNwNpcGZLsHsbfBqxRXHSbqzxIwkAD37KwyTa9Pj4dFx68QSJFZ33jAWn0dS7REbwwO4SjYxsxGKX/NrYk6sf7It7edTNCenQ/MqlJPAzR9Y435eRejFqwN6a07cq3/bZf2+rJd5806JMl8bSuQhVLwMRQvxdaZNHLgjfk8Jqi2P0DLGAsUWeej8OfOFmRuvhm06I+6oYerF2xyQTyfKvBdtUAK/arC0bzdIEYlN4AQ8A3d4kwhDXC733SZ8ALyyA9IxPOiCCrlc4iG/T14ZXndI59Jptl/tMvcgsyFBhxurTbn/AaIfxFxoLTgsEWWAlpdxJN5T5PeGdkyw==; Original-Received: from localhost ([127.0.0.1] helo=dancol.org) by dancol.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fUEHc-0002Mg-Tg; Sat, 16 Jun 2018 09:42:37 -0700 Original-Received: from 127.0.0.1 (SquirrelMail authenticated user dancol) by dancol.org with HTTP; Sat, 16 Jun 2018 09:42:37 -0700 In-Reply-To: <20180616123549.3203b454@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:226378 Archived-At: > On Sat, 16 Jun 2018 08:35:34 -0700 "Daniel Colascione" > wrote: >> I was doing some work on regex.c just now, and I was frustrated >> that the code is unnecessarily complicated by the ifdefs necessary >> to support some theoretical non-Emacs use case. Is all of this >> complexity really necessary? Are we sure the !emacs case even >> compiles? Are there non-Emacs users of the Emacs regex code? Can we >> just fork the implementation? How about baking in switches like >> MATCH_MAY_ALLOCATE? > > The emacs regex code is hardly state of the art. I would suggest that > there are many other, better, free software implementations of > regexes. There are. Unfortunately, none of them understand predicates like \= and \s|.