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:12:34 -0700 Message-ID: <868cfe5e875fd9679decfeca6098f536.squirrel@dancol.org> References: <83fu1mzq09.fsf@gnu.org> 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 1529165473 5530 195.159.176.226 (16 Jun 2018 16:11:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2018 16:11:13 +0000 (UTC) User-Agent: SquirrelMail/1.4.23 [SVN] Cc: Daniel Colascione , emacs-devel@gnu.org To: "Eli Zaretskii" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 16 18:11:09 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 1fUDnA-0001KK-B6 for ged-emacs-devel@m.gmane.org; Sat, 16 Jun 2018 18:11:08 +0200 Original-Received: from localhost ([::1]:52064 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUDpH-0007uz-Hq for ged-emacs-devel@m.gmane.org; Sat, 16 Jun 2018 12:13:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUDod-0007u5-Ja for emacs-devel@gnu.org; Sat, 16 Jun 2018 12:12:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUDoc-0008Tu-Gh for emacs-devel@gnu.org; Sat, 16 Jun 2018 12:12:39 -0400 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:48458) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fUDoZ-0008OL-BI; Sat, 16 Jun 2018 12:12:35 -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=IWUgW0JBypDvTu5pPdV498gHnhkf/R6I9zg7s1Ekyvw=; b=gif6ZQ692nH/A3KTuw2wGtIsviHkuw6qWrqvB68r0ve0C6GuVwer1b4h1fNVE9uh7lPVX6kD/wSsN9jNiKNAqPO525BqQCQYGqMmtbjh/Z+sXpgvmM7bqPCQShkokNAK7T5ckUiEstZnE3ofPgGEKM3/GOwTAAVlZtFpfH95AZqsYe2XifgwXdUylPL2kQFfu9luDm8K7YV7QF0/5YepfSxX6oT79z877u04VM4em8jHVBVQaGQTT5NNpgOpA0knApZ6E3ZUeACBZXaP08YjtSDtFwALcmUZcvo53opLioWVrkhxH1egt/Nwp1o0sk5uLL3cu5xxz1XD1SXE27VnAw==; Original-Received: from localhost ([127.0.0.1] helo=dancol.org) by dancol.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fUDoY-0002CZ-3Y; Sat, 16 Jun 2018 09:12:34 -0700 Original-Received: from 127.0.0.1 (SquirrelMail authenticated user dancol) by dancol.org with HTTP; Sat, 16 Jun 2018 09:12:34 -0700 In-Reply-To: <83fu1mzq09.fsf@gnu.org> 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:226373 Archived-At: >> Date: Sat, 16 Jun 2018 08:35:34 -0700 >> From: "Daniel Colascione" >> >> 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? > > I think we still haven't abandoned the hope of updating to the latest > glibc/gnulib versions of regex.c, although I'm not sure how practical > these hopes are at this point. I checked out the latest glibc and gnulib sources. Both are so far diverged that I think updating Emacs to that code is hopeless. (They have a DFA mode, for example.)