From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: modern regexes in emacs Date: Tue, 26 Feb 2019 13:00:44 +0100 Message-ID: <3A6A5857-55AC-4A21-8FA1-9B29D9CABD4A@acm.org> References: <20180616123704.7123f6d7@jabberwock.cb.piermont.com> <87po0qs6re.fsf@gmail.com> <83r2c9m8yj.fsf@gnu.org> <17581DA9-7DCA-432E-A2E8-E5184DFA8B4B@acm.org> <20190215114728.0785e891@jabberwock.cb.piermont.com> <20190215175405.GA5438@ACM> <83lg2gnbky.fsf@gnu.org> <3D5EA6AB-F0DA-4B66-8592-A111C906B3AE@acm.org> <83k1i0n88i.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="184564"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 26 13:11:50 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gybaP-000lsU-4v for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2019 13:11:49 +0100 Original-Received: from localhost ([127.0.0.1]:53895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gybaN-0002Xp-2j for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2019 07:11:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gybQ8-0004ZH-LP for emacs-devel@gnu.org; Tue, 26 Feb 2019 07:01:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gybPw-0003iW-Qa for emacs-devel@gnu.org; Tue, 26 Feb 2019 07:01:08 -0500 Original-Received: from mail74c50.megamailservers.eu ([91.136.10.84]:37356 helo=mail92c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gybPw-0003Sa-52 for emacs-devel@gnu.org; Tue, 26 Feb 2019 07:01:00 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1551182446; bh=+h+z4GlMftI9s/XKFmLz6/6k8I2fiiJ/KB2ZqhieXcY=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=dKuIU5EpkjVj7dfcXc8iYd/PhzyA8JW4XXScW+99bpU+GH9EDwtRjzt9dsjofI4Xd ls4KtotnPvjyIOeV0fNDTb/KDfvBY3RSZqIKbozrSxptd9p7K1tatXG3ebwVzM0naj MDgz7z+1ViL1sP7w+e3DHwHLy2MOqZpLWQ3VqFsw= Feedback-ID: mattiase@acm.or Original-Received: from [192.168.1.65] (c-e636e253.032-75-73746f71.bbcust.telenor.se [83.226.54.230]) (authenticated bits=0) by mail92c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x1QC0icQ003796; Tue, 26 Feb 2019 12:00:46 +0000 In-Reply-To: X-Mailer: Apple Mail (2.3445.102.3) X-CTCH-RefID: str=0001.0A0B020F.5C752A6E.006D, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=BrmzP7f5 c=1 sm=1 tr=0 a=M+GU/qJco4WXjv8D6jB2IA==:117 a=M+GU/qJco4WXjv8D6jB2IA==:17 a=kj9zAlcOel0A:10 a=OocQHUDgAAAA:8 a=_xsGea-W7pn7-b4ONJwA:9 a=CjuIK1q_8ugA:10 a=xUZTl98r3Qw_uB5NK3jt:22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 91.136.10.84 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:233628 Archived-At: 25 feb. 2019 kl. 15.47 skrev Lars Ingebrigtsen : >=20 > I think it would be nice if Emacs had a regexp object. That would = allow > us to extend Emacs in a compatible way somewhat seamlessly over a = period > of time. Yes. Furthermore, there would be less need to rely on a cache of regexp = compilation objects. Right now these are user-inaccessible; it is not = possible to keep, query or manipulate them. The cache is finite and = small, and occasionally thrashed. Enlarging the cache increases lookup = times, and entries can still be evicted. Reliably persistent regexp objects make it more viable to use expensive = compilation methods, triggered by use thresholds or on request.