unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#58509: 29.0.50; Synchronous nativecomp
@ 2022-10-14 10:38 Lars Ingebrigtsen
  2022-10-14 10:53 ` Eli Zaretskii
  0 siblings, 1 reply; 46+ messages in thread
From: Lars Ingebrigtsen @ 2022-10-14 10:38 UTC (permalink / raw)
  To: 58509; +Cc: Andrea Corallo


I thought I'd open a bug report for something I mentioned elsewhere: It
should be possible for --batch Emacsen to do native compilation.

I've got a bunch of Elisp scripts, and some of them do a lot of stuff,
and it'd be nice if they were native-compiled.  This will happen if I
also use the same packages interactively, but that often doesn't happen.
(And besides, since there's a bunch of different Emacs versions, they
won't use the same eln cache anyway.)

So I'd like to be able to say "emacs --batch --native-compile -l ..." or
something along those lines.

However, this also almost requires that we allow the nativecomp to
happen synchronously -- the batch job may end before nativecomp finished
otherwise, leading to cleanup problems and loss of efficiency.  So in
this mode, loading an .elc file (with missing .eln file) should instead
just trigger .eln generation, and then we load the .eln file.

And then perhaps we don't actually have to fork an Emacs to do the .eln
generation?  We can just do it in the currently running one, leading to
further efficiency gains.

This is also useful as a general tool for debugging: Today, things
aren't really reproducible, because things happen asynchronously and
unpredictably.  So if we have this, we can also use it as a debugging
tool in general, and not just in --batch.



In GNU Emacs 29.0.50 (build 144, x86_64-pc-linux-gnu, GTK+ Version
 3.24.33, cairo version 1.16.0) of 2022-10-13 built on downe
Repository revision: cbd04ad3d572850775f18bde868c71abcde733ed
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101003
System Description: Ubuntu 22.04.1 LTS






^ permalink raw reply	[flat|nested] 46+ messages in thread

end of thread, other threads:[~2022-10-26  6:40 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-14 10:38 bug#58509: 29.0.50; Synchronous nativecomp Lars Ingebrigtsen
2022-10-14 10:53 ` Eli Zaretskii
2022-10-14 10:56   ` Lars Ingebrigtsen
2022-10-14 11:04     ` Eli Zaretskii
2022-10-14 11:13       ` Lars Ingebrigtsen
2022-10-14 11:49         ` Eli Zaretskii
2022-10-14 11:51           ` Lars Ingebrigtsen
2022-10-14 11:53             ` Eli Zaretskii
2022-10-14 11:59               ` Lars Ingebrigtsen
2022-10-14 12:11                 ` Eli Zaretskii
2022-10-14 12:20                   ` Lars Ingebrigtsen
2022-10-14 12:54                     ` Eli Zaretskii
2022-10-14 12:59                       ` Lars Ingebrigtsen
2022-10-14 13:05                         ` Eli Zaretskii
2022-10-14 13:15                           ` Lars Ingebrigtsen
2022-10-14 21:40           ` Andrea Corallo
2022-10-15  6:45             ` Eli Zaretskii
2022-10-15  9:22             ` Lars Ingebrigtsen
2022-10-15 16:29               ` Andrea Corallo
2022-10-16  8:50                 ` Lars Ingebrigtsen
2022-10-17  7:52                   ` Andrea Corallo
2022-10-17 11:20                     ` Lars Ingebrigtsen
2022-10-17 11:57                       ` Lars Ingebrigtsen
2022-10-17 13:41                         ` Eli Zaretskii
2022-10-17 19:30                           ` Lars Ingebrigtsen
2022-10-18 13:43                             ` Eli Zaretskii
2022-10-18 13:55                               ` Andrea Corallo
2022-10-18 18:15                                 ` Lars Ingebrigtsen
2022-10-19 19:06                                   ` Andrea Corallo
2022-10-18 18:45                                 ` Eli Zaretskii
2022-10-19 19:02                                   ` Andrea Corallo
2022-10-19 19:11                                     ` Eli Zaretskii
2022-10-19 19:31                                       ` Andrea Corallo
2022-10-20  6:43                                         ` Eli Zaretskii
2022-10-20  7:23                                           ` Andrea Corallo
2022-10-20  8:06                                             ` Eli Zaretskii
2022-10-23 10:51                                               ` Andrea Corallo
2022-10-23 11:43                                                 ` Eli Zaretskii
2022-10-23 12:10                                                   ` Andrea Corallo
2022-10-25 19:54                                                     ` Andrea Corallo
2022-10-26  2:30                                                       ` Eli Zaretskii
2022-10-26  6:40                                                         ` Andrea Corallo
2022-10-18 18:14                               ` Lars Ingebrigtsen
2022-10-18 18:32                                 ` Eli Zaretskii
2022-10-18 18:39                                   ` Eli Zaretskii
2022-10-19  9:06                                     ` Lars Ingebrigtsen

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).