From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: On elisp running native - Update 11 Date: Tue, 18 Aug 2020 08:17:06 +0000 Message-ID: References: <83o8uegykm.fsf@gnu.org> <74dd94a9-28cb-a5fd-dbc7-ab21009834ad@cs.ucla.edu> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6527"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: Andrea Corallo via "Emacs development discussions." , Eli Zaretskii , Stefan Monnier , rms@gnu.org To: Arthur Miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 18 10:17:42 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k7woQ-0001Yo-CM for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Aug 2020 10:17:42 +0200 Original-Received: from localhost ([::1]:43240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k7woP-0002OD-EV for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Aug 2020 04:17:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7wnw-0001xp-1y for emacs-devel@gnu.org; Tue, 18 Aug 2020 04:17:12 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:60759) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7wnt-0001Il-Tw; Tue, 18 Aug 2020 04:17:11 -0400 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTP id 07I8H6PJ025388; Tue, 18 Aug 2020 08:17:07 GMT In-Reply-To: (Arthur Miller's message of "Tue, 18 Aug 2020 07:13:56 +0200") Received-SPF: pass client-ip=205.166.94.24; envelope-from=akrl@sdf.org; helo=mx.sdf.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/18 04:17:07 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:253933 Archived-At: Arthur Miller writes: > Andrea Corallo via "Emacs development discussions." > writes: > >> Hi all, >> >> I've pushed the branch reorganizing the layout of the .eln files and the >> load and compilation triggering mechanism. >> >> Works for me, hope it does not introduce too much breakage. >> >> I tried to summarize how it works now on my usual dev log page >> http://akrl.sdf.org/gccemacs.html > Hi Andrea; > > Thanks for great work, native compiler is really awesome and works for > the most part great, have being using it since you posted first update > and it works for the most part really well. I have noticed really big > difference since few weeks ago when I compiled both Emacs and elpa > folder to native. Hi Arthur, that's great to hear! > I have some questions about this last update: > > "Deferred compilation is now enabled by default, therefore is not > anymore necessary to set comp-deferred-compilation manually." > > Can I still compile everything to native "up-front", without need to > wait for deffered compilation to kick in? It does not take so much time > for me to do it, so I prefer to do it all in advance. Yep. By default make still native compiles all Emacs (we may change the default but I guess we'll leave a knob there). Regarding packages something like ~(native-compile-async "~/.emacs.d/elpa/" 4 t)~ should still do the job head of time. > "When a .elc file is being loaded if a suitable .eln file is found in > one of the eln-cache directories this is loaded instead. Otherwise the > file is compiled asyncronously and its definitions are swapped once > finished with that. > > I've removed .eln from load-suffixes as loading native code is not > supposed to be manually done by the user. This has also the positive > side effect to reduce the number of files we search for while performing > a load." > >> Also having now some more infrastructure on how and where to place .eln >> files should be easier to tackle the advised primitives topic for which >> I plan to generate some code. > > Will there ever be possible for emacs to check if natively compiled file > is older then .el (source file) and do compilation (el->elc->eln) > automatically so we don't have to waste disk space and keep around .elc > files? Or did I missunderstand how is is supposed to work? > > I would really prefer to see .eln as "equal" to .elc; and as there is > a 'some-file.el' and 'some-file.elc' to see 'some-file.eln' and .eln to > replace .elc as compiled .el file. The short answer is: I think so. I have an experimental branch where the .elc are not produced at all by make bootstrap. The only complication is that for the Emacs build I had to modify the process to depose files containing the doc so make-docfile.c can eat those instead of the .elc files. Other than that we should re-add .eln to load-suffixes. But as I'm not sure this is a requirement I'd prefer first to converge with the current setup. Unless I get some specific input on that I think I'll keep this idea and its branch aside for now :) Thanks Andrea -- akrl@sdf.org