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 "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#46617: 28.0.50; nativecomp: native compile cache is not invalidated when file is re-byte compiled and changes Date: Mon, 22 Mar 2021 07:57:40 +0000 Message-ID: References: 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="23566"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 46617@debbugs.gnu.org To: Aaron Jensen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 22 08:58:54 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lOFSf-0005zq-Vk for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Mar 2021 08:58:53 +0100 Original-Received: from localhost ([::1]:48638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOFSe-00051v-Rt for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Mar 2021 03:58:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOFRq-0004EF-5K for bug-gnu-emacs@gnu.org; Mon, 22 Mar 2021 03:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44531) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lOFRp-0003Bj-S4 for bug-gnu-emacs@gnu.org; Mon, 22 Mar 2021 03:58:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lOFRp-0002ym-Qc for bug-gnu-emacs@gnu.org; Mon, 22 Mar 2021 03:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Mar 2021 07:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46617 X-GNU-PR-Package: emacs Original-Received: via spool by 46617-submit@debbugs.gnu.org id=B46617.161639986811436 (code B ref 46617); Mon, 22 Mar 2021 07:58:01 +0000 Original-Received: (at 46617) by debbugs.gnu.org; 22 Mar 2021 07:57:48 +0000 Original-Received: from localhost ([127.0.0.1]:56077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOFRb-0002yM-W0 for submit@debbugs.gnu.org; Mon, 22 Mar 2021 03:57:48 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:56749) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOFRZ-0002yB-Af for 46617@debbugs.gnu.org; Mon, 22 Mar 2021 03:57:46 -0400 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 12M7veAU008618 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Mon, 22 Mar 2021 07:57:42 GMT In-Reply-To: (Aaron Jensen's message of "Sun, 21 Mar 2021 19:44:45 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:202822 Archived-At: Aaron Jensen writes: > On Sun, Mar 21, 2021 at 3:54 PM Andrea Corallo wrote: >> >> Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of >> text editors" writes: >> >> >> Okay I've added `comp-lookup-eln' son now the user can search if a >> certain .eln is in reach in `comp-eln-load-path' for a given .el. >> >> So now one can use the following to force a native load. >> >> (load (comp-lookup-eln ".../foo.el")) > > Okay, and that would return nil if it's not native compiled, which > would be their cue to native compile it, yes? Yes `comp-lookup-eln' will return nil if the eln is not found. > That's nice to be able > to force load it. > > Without doing the modification date stuff you mentioned or purge > before byte compile, native compilation ends up having to be a concern > of anything that's doing byte compiling, which is unfortunate. Say anything that's doing byte compiling deliberately capturing environment values yes. Andrea > Ideally > Straight.el could just change to doing a (load "foo") after the > explicit byte compile and get the automatic async native compilation. > They could also do a delete file if the result of comp-lookup-eln > exists, prior to or just after byte compiling, then at least they > won't have to native compile synchronously. > > Thanks, > > Aaron