From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Steingold Newsgroups: gmane.emacs.devel Subject: Re: More reliable byte compilation, take 45 Date: Tue, 05 Oct 2021 10:50:14 -0400 Organization: disorganization Message-ID: References: <87sfxhm5aw.fsf@gnus.org> <87lf38ae1j.fsf@gnus.org> <87sfxg6izt.fsf@gnus.org> Reply-To: sds@gnu.org Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38929"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) To: emacs-devel@gnu.org Cancel-Lock: sha1:iioYBTporEB2JbZZXg1ZpU21svE= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 05 17:17:38 2021 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 1mXmCI-0009xh-EJ for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Oct 2021 17:17:38 +0200 Original-Received: from localhost ([::1]:51006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXmCG-0003ZA-Cd for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Oct 2021 11:17:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXlm1-0007cN-9O for emacs-devel@gnu.org; Tue, 05 Oct 2021 10:50:30 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:49394) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXllw-0000Jd-13 for emacs-devel@gnu.org; Tue, 05 Oct 2021 10:50:29 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mXllt-0003bC-Ez for emacs-devel@gnu.org; Tue, 05 Oct 2021 16:50:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=no 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:276335 Archived-At: > * Lars Ingebrigtsen [2021-10-05 09:14:30 +0200]: > > Steingold writes: > >> See if subr.ell has changed (the compiler should not change subr.ell >> unless necessary, including the timestamp). > > Right, because the subr.ell only contains macros (and the like). So > the suggestion here is basically the same as mine, only with a lot > more files spread around. here is your suggestion: > go through all the .el files and just look for "^\(defmacro ([^ > \t\n]+)" (and defsubst and cl-defstruct and probably a couple of other > things, but not a whole lot more), and then do a sha256 of the region > from the start of the match and until the next "^(". It would maintain > a database of these macro names/hashes. If a macro changes its hash, it > would then just grep through all the .el files for the macro name, and > delete the .elc files where it fines matches. I think the extra "compiled header" file is _way_ simpler and more transparent solution. -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1894 http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com https://ij.org/ https://ffii.org https://memri.org https://jihadwatch.org Illiterate? Write today, for free help!