[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hijack C function, use it transparently with in-between layer
From: |
Barry Margolin |
Subject: |
Re: hijack C function, use it transparently with in-between layer |
Date: |
Mon, 06 Jun 2016 10:42:18 -0400 |
User-agent: |
MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
In article <mailman.974.1465221532.1216.help-gnu-emacs@gnu.org>,
Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> >>> 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.
Is that a bug or a feature request? The documentation for advice
specifically warns that it doesn't have any effect on calls to built-in
functions from the C layer.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
- hijack C function, use it transparently with in-between layer, Emanuel Berg, 2016/06/05
- Re: hijack C function, use it transparently with in-between layer, Marcin Borkowski, 2016/06/05
- Re: hijack C function, use it transparently with in-between layer, Barry Margolin, 2016/06/06
- Re: hijack C function, use it transparently with in-between layer, Emanuel Berg, 2016/06/06
- Re: hijack C function, use it transparently with in-between layer, Phillip Lord, 2016/06/06
- Message not available
- Re: hijack C function, use it transparently with in-between layer, Emanuel Berg, 2016/06/06
- Re: hijack C function, use it transparently with in-between layer, Stefan Monnier, 2016/06/06
- Message not available
- Re: hijack C function, use it transparently with in-between layer, Emanuel Berg, 2016/06/06
- Re: hijack C function, use it transparently with in-between layer, Stefan Monnier, 2016/06/06
- Message not available
- Re: hijack C function, use it transparently with in-between layer,
Barry Margolin <=
- Re: hijack C function, use it transparently with in-between layer, Stefan Monnier, 2016/06/06
- Re: hijack C function, use it transparently with in-between layer, Emanuel Berg, 2016/06/06
- Re: hijack C function, use it transparently with in-between layer, John Mastro, 2016/06/06
- Re: hijack C function, use it transparently with in-between layer, Barry Margolin, 2016/06/06
- Re: hijack C function, use it transparently with in-between layer, Emanuel Berg, 2016/06/06
- Message not available
- Re: hijack C function, use it transparently with in-between layer, Emanuel Berg, 2016/06/06
- Re: hijack C function, use it transparently with in-between layer, Phillip Lord, 2016/06/07
- Re: hijack C function, use it transparently with in-between layer, Eli Zaretskii, 2016/06/07
- Re: hijack C function, use it transparently with in-between layer, Emanuel Berg, 2016/06/07
- Message not available
- Re: hijack C function, use it transparently with in-between layer, Emanuel Berg, 2016/06/07