unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Danny McClanahan <dmcc2@hypnicjerk.ai>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: prior work on non-backtracking regex engine?
Date: Wed, 13 Mar 2024 13:23:42 +0000	[thread overview]
Message-ID: <87il1qw9i9.fsf@localhost> (raw)
In-Reply-To: <Stg6_g1_PHfTYAWkfl-oqZNpV4u5Q2NAQsT-162rcb8PGYLpUqphMqoa_YpRA6e7WGtjAPYByt18IC1gVbkyAl2FfiHYe6Wy6kKyqbzQEUk=@hypnicjerk.ai>

Danny McClanahan <dmcc2@hypnicjerk.ai> writes:

> (4) What is the best way to package third-party code for emacs?
>
> I was thinking of architecting this regex engine as a third-party
> codebase exposing a C ABI shared library, which the emacs build system
> could detect as an optional dependency (like libjansson). I was hoping
> to use rust to implement this regex engine, but I know that a cargo
> package alone isn't enough for non-rust code to depend on: I was also
> planning to maintain package recipes for this regex engine for
> multiple linux distros, so that emacs could easily add it to the build
> system (like librsvg). Are there any further constraints I should know
> about for optional dependencies in the emacs build system?

AFAIR, previous discussions raised some concerns about using Rust in
particular:
https://yhetil.org/emacs-devel/E1pKAM0-0001Ss-W6@fencepost.gnu.org/
Because of Rust volatility and some license issues.

That said, the linked discussion was not about linking to rust libraries
via C ABI, but about contributing Rust code to Emacs core directly.

Another somewhat relevant discussion is
https://yhetil.org/emacs-devel/95980ffc-86e7-ad54-4a20-539d8c6ea5d0@mailo.com/

P.S. Better regexp engine would be very welcome.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



  reply	other threads:[~2024-03-13 13:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-10 15:41 prior work on non-backtracking regex engine? Danny McClanahan
2024-03-12 23:45 ` Danny McClanahan
2024-03-13 13:23   ` Ihor Radchenko [this message]
2024-04-07  4:42     ` Danny McClanahan
2024-04-07 14:15       ` Ihor Radchenko
2024-04-08 12:19       ` Helmut Eller
2024-04-08 13:13         ` Eli Zaretskii
2024-04-08 14:00       ` Po Lu
2024-04-08 14:23         ` Eli Zaretskii
2024-04-12  0:12           ` Danny McClanahan
2024-04-17 14:23 ` Clément Pit-Claudel

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=87il1qw9i9.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=dmcc2@hypnicjerk.ai \
    --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 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).