unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Danny McClanahan <dmcc2@hypnicjerk.ai>
To: emacs-devel@gnu.org
Cc: Pip Cet <pipcet@protonmail.com>
Subject: Re: [PATCH] add compiled regexp primitive lisp object
Date: Sun, 08 Dec 2024 15:24:44 +0000	[thread overview]
Message-ID: <GIyMDXjvvBTHkKS8RJ4suMe1ZCxqi3KeDasdrqe_q2LQu2kTS3bMr3-m3CCddVqSRqFUNNYoYczBvmNTAlXFagcJT4JKsLxlh6o5RZ3Wagk=@hypnicjerk.ai> (raw)
In-Reply-To: <bI8s6V5mGnaISfUxrwgTc7xomnZKNE3_7NdhdFVxGZ5wqc1EBVenxQKFBSik0vDuqeMvq2LZ1cgwf0bmcp1t0K__9QIvf1MvmzD-R0w5k6c=@hypnicjerk.ai>

Hello! The talk video and slides are up at https://emacsconf.org/2024/talks/regex/.

- The slides have much more content than the video itself.
  - I have a 50 minute talk video which I will be editing and subtitling and posting in a bit.
- I received feedback that the filtering I applied over my camera stream is incredibly distracting so please feel free to cover up that part. Sorry! :(

One thing I note in a footnote is that the precompiled regexp doesn't work for fontification yet, and I think it's because there's buffer-local state not available when the regexp is compiled. NullNix on EmacsConf IRC had a *fantastic* suggestion I hadn't considered at all: make the compile cache buffer-local (or mode-local)!

Especially since I advocate for the approach Pip Cet suggests (doing a new regexp engine in lisp itself) instead of trying to extend the C engine with new features, I think making the cache more specific is probably much more likely to succeed for things like fontification than circumventing the cache approach entirely. This seems like a much more appropriate way to extend the C engine for immediate goals, while we can do a lisp engine for the stuff we can't do with regex-emacs!

I will try posting a patch with that approach in the next few days (likely without any of the changes from this patch). I think if fontification still doesn't work with this (perhaps if the syntax table or case table is modified), that would still be interesting and I'll delve into that more deeply.

Thanks,
Danny

On Tuesday, November 26th, 2024 at 13:05, Danny McClanahan <dmcc2@hypnicjerk.ai> wrote:

>
>
> Thanks so much for this thorough and thoughtful response! I am compiling a 20-minute recorded talk for the upcoming EmacsConf regarding these discussions and investigations. I am also now waiting for a response from graduate school, during which I hope to then have more time to pin down several of the threads raised by this discussion.
>
> This has all been immensely helpful and I really appreciate how responsive emacs-devel has been in elaborating much of the packed-together assumptions I was making.



  parent reply	other threads:[~2024-12-08 15:24 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-30  5:08 [PATCH] add compiled regexp primitive lisp object Danny McClanahan
2024-07-30 13:02 ` Philip Kaludercic
2024-07-31 22:33   ` dmcc2
2024-08-01  1:04 ` Pip Cet
2024-08-04 23:38   ` Danny McClanahan
2024-08-05  3:47     ` dmcc2
2024-08-05  4:39   ` Danny McClanahan
2024-08-05  7:15     ` Danny McClanahan
2024-08-05 17:55     ` Pip Cet
2024-08-06 15:15       ` Danny McClanahan
2024-08-06 15:57         ` Eli Zaretskii
2024-08-07  4:28           ` Danny McClanahan
2024-08-06 18:18         ` Pip Cet
2024-08-06 18:38           ` Eli Zaretskii
2024-08-07  4:23             ` Danny McClanahan
2024-08-07 12:00               ` Eli Zaretskii
2024-08-07 12:43                 ` Helmut Eller
2024-08-07 13:40                   ` Augusto Stoffel
2024-08-07 15:23                     ` Danny McClanahan
2024-08-14  1:32                     ` Stefan Monnier
2024-11-26 18:05                       ` Danny McClanahan
2024-11-26 18:50                         ` Danny McClanahan
2024-12-08 15:24                         ` Danny McClanahan [this message]
2024-12-09 15:12                           ` Stefan Monnier
2024-12-09 15:13                             ` Stefan Monnier
2024-08-07 15:02                 ` Danny McClanahan
2024-08-07 15:23                   ` Eli Zaretskii
2024-08-14  1:25               ` Stefan Monnier
2024-08-07  7:59           ` Danny McClanahan
2024-08-06 12:08     ` Eli Zaretskii
2024-08-01  8:30 ` Andrea Corallo
2024-08-01 10:06   ` Gerd Möllmann
2024-08-06 13:47   ` Danny McClanahan
2024-08-06 13:57     ` Danny McClanahan
2024-08-07  7:21     ` Andrea Corallo
2024-08-07  8:27       ` Danny McClanahan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='GIyMDXjvvBTHkKS8RJ4suMe1ZCxqi3KeDasdrqe_q2LQu2kTS3bMr3-m3CCddVqSRqFUNNYoYczBvmNTAlXFagcJT4JKsLxlh6o5RZ3Wagk=@hypnicjerk.ai' \
    --to=dmcc2@hypnicjerk.ai \
    --cc=emacs-devel@gnu.org \
    --cc=pipcet@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).