[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs-dynamic-module in Emacs Git?
From: |
Stephen Leake |
Subject: |
Re: emacs-dynamic-module in Emacs Git? |
Date: |
Mon, 01 Dec 2014 16:46:25 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.94 (windows-nt) |
Ted Zlatanov <address@hidden> writes:
> On Mon, 1 Dec 2014 17:28:01 +0100 Aurélien Aptel <address@hidden> wrote:
>
> AA> In order to do anything useful (even in a "call-only" API) you need
> AA> access to Emacs facilities. At the very least access to Elisp data
> AA> structures (symbols, numbers, strings and buffers).
>
> I think it's less efficient but also safer to return data as text in
> sexp or JSON format. Exposing the Emacs internals just to return data
> seems risky. Some modules may need that level of access, but most
> don't.
My module will be setting text properties in buffers, based on the
results of parsing the code; it's replacing elisp code that does that
now, which is too slow.
> AA> The point of compiled modules is also efficiency so the access has
> AA> to be low level enough (no big conversion or copying needed).
>
> Of course, but the difference is not that big and it can be optimized
> later.
I have moved the parsing code into a separate executable communicating
by pipes. The communication and subsequent text processing takes a
significant time; too long for my requirements. Which is why I'm looking
for a more direct approach.
> AA> For me a module package will be composed of a metadata file, a bunch
> AA> of C files implementing small and simple primitives and a bunch of
> AA> elisp files for the logic.
>
> Great. But can Emacs find out a module's metadata before loading it?
It can if it's an ELPA package.
--
-- Stephe
- Re: emacs-dynamic-module in Emacs Git?, Ted Zlatanov, 2014/12/01
- Re: emacs-dynamic-module in Emacs Git?, Stefan Monnier, 2014/12/01
- Re: emacs-dynamic-module in Emacs Git?, Aurélien Aptel, 2014/12/01
- Re: emacs-dynamic-module in Emacs Git?, Ted Zlatanov, 2014/12/01
- Re: emacs-dynamic-module in Emacs Git?, Eli Zaretskii, 2014/12/01
- Re: emacs-dynamic-module in Emacs Git?, Stefan Monnier, 2014/12/01
- Re: emacs-dynamic-module in Emacs Git?, Ted Zlatanov, 2014/12/01
- Re: emacs-dynamic-module in Emacs Git?, Ted Zlatanov, 2014/12/02
- Re: emacs-dynamic-module in Emacs Git?, Aurélien Aptel, 2014/12/04
- Re: emacs-dynamic-module in Emacs Git?, Ted Zlatanov, 2014/12/04
- Re: emacs-dynamic-module in Emacs Git?, Ivan Andrus, 2014/12/04
- Re: emacs-dynamic-module in Emacs Git?, Ted Zlatanov, 2014/12/09
- Re: emacs-dynamic-module in Emacs Git?, Aurélien Aptel, 2014/12/11
- Re: emacs-dynamic-module in Emacs Git?, Ted Zlatanov, 2014/12/11