all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Helmut Eller <eller.helmut@gmail.com>
To: Danny McClanahan <dmcc2@hypnicjerk.ai>
Cc: Eli Zaretskii <eliz@gnu.org>,  emacs-devel@gnu.org
Subject: Re: rosie/libpexl library for regex pattern composition
Date: Mon, 29 Jul 2024 21:33:53 +0200	[thread overview]
Message-ID: <875xsof0wu.fsf@gmail.com> (raw)
In-Reply-To: <RzdsFbDeFoS-Ncw_buZZgf-bFjfVe4hsjniWhserbIfAWPgdUbcQcQNTLkI08kARIGyQG59fIjsrf28ZPvN52jnV0iF_uQnJjMRFrXs9q60=@hypnicjerk.ai> (Danny McClanahan's message of "Mon, 29 Jul 2024 13:58:13 +0000")

On Mon, Jul 29 2024, Danny McClanahan wrote:

[...]
> I had not considered the possibility of exposing a module API for
> extensible parsing engines as opposed to building it directly into
> Emacs like the current regex-emacs engine, but I definitely appreciate
> the idea of decoupling from a specific framework, especially with an
> eye to reducing the maintenance burden. From my current understanding,
> the benefits of building Rosie/PEXL directly into Emacs would be:
> (1) could take advantage of e.g. SIMD search by directly accessing the
> gap buffer memory,

It depends on how the module API exposes the buffer text.  E.g. I would
imagine that a Rust function that receives the text as two &[u8],
i.e. two byte array slices borrowed read-only for the duration of a
call, could have similar efficiency as something built directly into
Emacs.

> (2) since it would be reliably available to all Emacs users, could
> form a composeable elisp search API.

I think Rosie/PEXL would stay an optional feature for a long time.

[...]
> Does that correctly outline the goals/desires for lisp-level matcher
> construction?

I don't know.  This sounds like an new API would be needed and the
difficulty, beside designing the API, would be to make it popular;
usually the most difficult part.  The old API would still be used for a
long time.

I think the Emacs community is mostly a do-ocracy, i.e., people work on
things they are interested in or know how to do; in contrast to work on
goals/ideas that somebody else defined.  That's quite ok as long as the
boring tasks get done eventually.  And I would suggest the same here: do
what you think is useful and that you know how to do.



      reply	other threads:[~2024-07-29 19:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-27 13:04 rosie/libpexl library for regex pattern composition Danny McClanahan
2024-07-28  7:08 ` Helmut Eller
2024-07-28  7:51   ` Eli Zaretskii
2024-07-29 13:58     ` Danny McClanahan
2024-07-29 19:33       ` Helmut Eller [this message]

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

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

  git send-email \
    --in-reply-to=875xsof0wu.fsf@gmail.com \
    --to=eller.helmut@gmail.com \
    --cc=dmcc2@hypnicjerk.ai \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.