From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: raman@google.com, cpitclaudel@gmail.com, emacs-devel@gnu.org
Subject: Re: More reliable byte compilation, take 45
Date: Mon, 04 Oct 2021 16:13:33 -0400 [thread overview]
Message-ID: <jwvo884iml1.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <831r506025.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 04 Oct 2021 22:51:14 +0300")
>> Converting a `.elc` file to a `.eln` file can be done by a pure function
>> with no need for any extra information.
> I very much doubt that.
You might be right, there might be corner cases I'm not taking into
account, but by and large it should be the case. At least much more so
than for `.el` files where it's clearly a real problem.
> I have no reason to believe that the problems we see with native
> compilation are related to these aspects.
I'm not sure which problems you're referring to.
Within the context of Emacs's own ELisp files, this should never be
an issue.
> Do you have evidence of that?
IIRC, in Raman's case the evidence was that the `.eln` file was calling
a macro as if it were a function, and that this didn't happen when using
the `.elc` file. These problems typically happen when a `.el` file is
miscompiled because some other ELisp file was not loaded beforehand.
Admittedly, I don't have actual evidence, but it seemed to hint at that.
In any case, the problem with compiling from the `.el` file instead of
from the `.elc` file is real and it's easy to trigger it on purpose.
The only question for me is how often it will bite us out there in the
real world.
There's a chance that it will simply encourage people to fix their ELisp
files to better follow the (undocumented) conventions, so to some degree
I agree that it might be preferable not to fix this issue.
Stefan
next prev parent reply other threads:[~2021-10-04 20:13 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-04 10:51 More reliable byte compilation, take 45 Lars Ingebrigtsen
2021-10-04 15:36 ` Clément Pit-Claudel
2021-10-04 16:16 ` Lars Ingebrigtsen
2021-10-04 18:16 ` T.V Raman
2021-10-04 18:21 ` Eli Zaretskii
2021-10-04 19:18 ` Stefan Monnier
2021-10-04 19:51 ` Eli Zaretskii
2021-10-04 20:13 ` Stefan Monnier [this message]
2021-10-05 11:52 ` Eli Zaretskii
2021-10-05 13:27 ` Stefan Monnier
2021-10-05 14:06 ` Adam Porter
2021-10-05 15:41 ` Eli Zaretskii
2021-10-04 16:03 ` Steingold
2021-10-04 17:35 ` Lars Ingebrigtsen
2021-10-04 18:59 ` Steingold
2021-10-05 7:14 ` Lars Ingebrigtsen
2021-10-05 14:50 ` Steingold
2021-10-05 14:51 ` Steingold
2021-10-05 19:30 ` Stefan Monnier
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=jwvo884iml1.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=cpitclaudel@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=raman@google.com \
/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.