From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Danny McClanahan Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] add compiled regexp primitive lisp object Date: Tue, 26 Nov 2024 18:50:36 +0000 Message-ID: <231nVA_JeeFRqN-Jr2qUlIPAwaTNYT2G1qiiSY5Y4hRBFChCiK0sgenqrHcARaGyopcDt5XzTfk63BzPZAs0-8syQ-UDWVqoOz2B3mYrvuY=@hypnicjerk.ai> References: <2LOLmIp1X8w4CGbqq3qDrzmKVA0KzYNL1N9lBtWdB-MtEv9oCuYgJMYprG170wMPjYxeQImAmWOPatGTTl4KxZMlptNo9A9hnHt84vdN9EA=@hypnicjerk.ai> <87ttfxtszi.fsf@protonmail.com> <86r0b1o5sr.fsf@gnu.org> <868qx8o83w.fsf@gnu.org> <875xscec62.fsf@gmail.com> <87o764sb6y.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37267"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Augusto Stoffel , Helmut Eller , Eli Zaretskii , Danny McClanahan , pipcet@protonmail.com, emacs-devel@gnu.org, mattiase@acm.org, acorallo@gnu.org, stefankangas@gmail.com To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 26 21:12:36 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tG1vI-0009Um-8A for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Nov 2024 21:12:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tG1uj-0004Gz-Aj; Tue, 26 Nov 2024 15:12:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tG0e6-0008Jx-2H for emacs-devel@gnu.org; Tue, 26 Nov 2024 13:50:46 -0500 Original-Received: from mail-40136.proton.ch ([185.70.40.136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tG0e3-0000Yc-TG; Tue, 26 Nov 2024 13:50:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hypnicjerk.ai; s=protonmail3; t=1732647039; x=1732906239; bh=WHA8+6PrDQPVucvzacZQaorDLFeYudMi9RV/H2IlLmE=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=zVIBloWMZ8TcodGqrcQuf1Ij/a5N4GsYLSsFflBtpeq8a38roITw8Qyyb3KIJe+SN GAl0PBc3607skNm7JUOllS93QRZZVtcrwFDP8oLRCJTx7Coqxrx7L3UIQvoI4UQsvg lPB+oNO43yhFHjLFLrAtmE935qoFgzmkAWJkMK/GJoa2lssTXxz7mxDdBf/SmJT7nm dbCEwSUHm1sJZoZJT2vdNawwTQVzt/VyaQUq5cz5oKJ2IcVxpD2e6/4GrY14yAb5nN sWQitcesoVfWDhPwQzRs9PgUk9DgkA1kq9sNoCcTEofPjeX77/V3Uqoxwv4CYx9y5i uY0vJsnrx97bg== In-Reply-To: Feedback-ID: 27837847:user:proton X-Pm-Message-ID: 66214317bb2a5063a1d2872b85e38d9a5578e45a Received-SPF: pass client-ip=185.70.40.136; envelope-from=dmcc2@hypnicjerk.ai; helo=mail-40136.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 26 Nov 2024 15:11:51 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:325723 Archived-At: The talk description I submitted a bit ago can be viewed at https://emacsco= nf.org/2024/talks/regex/ for anyone who is interested. I am planning to be = around over IRC for a good amount of the conference but especially around t= he talk time. The description serves partially as a manifesto for my own purposes, and al= so as a self study of how Emacs allows the user to extract so much meaning = out of pattern matching, as part of a general conception of Emacs as a mode= of technical empowerment. On Tuesday, November 26th, 2024 at 13:05, Danny McClanahan wrote: >=20 >=20 > Thanks so much for this thorough and thoughtful response! I am compiling = a 20-minute recorded talk for the upcoming EmacsConf regarding these discus= sions and investigations. I am also now waiting for a response from graduat= e school, during which I hope to then have more time to pin down several of= the threads raised by this discussion. >=20 > This has all been immensely helpful and I really appreciate how responsiv= e emacs-devel has been in elaborating much of the packed-together assumptio= ns I was making. >=20 > On Tuesday, August 13th, 2024 at 21:32, Stefan Monnier monnier@iro.umontr= eal.ca wrote: >=20 > > > Ignoring the issue that regexps may be syntax-table dependent and oth= er > >=20 > > > complications (issues which also would need to be addressed in the > > > proposed approach), what would be the advantage of exposing compiled > > > regexp objects versus having an infinite regexp cache? > >=20 > > I can think of the following: > >=20 > > - Not having to pay as much attention to the engineering of the cache > > (it's currently small because the lookup could become costly, with > > the current implementation). > >=20 > > - We could offer to spend a fair bit more time optimizing the compiled > > code (e.g. removing backtracking). > >=20 > > But there's always the question of whether it's worth the complexity. > > IOW, what are the concrete use cases where it makes > > a measurable difference. > >=20 > > Stefan >=20 >=20 >