help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hijack C function, use it transparently with in-between layer


From: Stefan Monnier
Subject: Re: hijack C function, use it transparently with in-between layer
Date: Mon, 06 Jun 2016 09:58:31 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

>>> Good point, any ideas how to get to that as well?
>> Report the cases you bump into as bugs.
> You mean there should be no C to C calls for
> stuff that are in Elisp as well?

Just because you report it as a bug doesn't mean the maintainers will
fix it or agree that it should be fixed.  There will sometimes be
overriding concerns.  I think the main 2 reasons why a C-to-C call
should not be replaced by a call "via Elisp" are:
- the call is made in a context where it's unsafe to run arbitrary Elisp
  code (e.g. GC is not allowed, or something like that).
- the performance cost would be too high compared to the benefit of the
  added flexibility.

So whether the code can be changed or not will depend on the
specific cases.  Hence report them as bugs and so the maintainers can
look into it.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]