From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.devel Subject: Re: Suppressing native compilation (short and long term) Date: Fri, 30 Sep 2022 07:55:08 -0700 Message-ID: <87v8p4kj3n.fsf@melete.silentflame.com> References: <87bkqxf1ij.fsf@tethera.net> <8335c9dkyf.fsf@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="4879"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: David Bremner , emacs-devel@gnu.org, akrl@sdf.org, rlb@defaultvalue.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 30 16:56:09 2022 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 1oeHQt-00015s-R6 for ged-emacs-devel@m.gmane-mx.org; Fri, 30 Sep 2022 16:56:09 +0200 Original-Received: from localhost ([::1]:47836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeHQs-0005Bj-If for ged-emacs-devel@m.gmane-mx.org; Fri, 30 Sep 2022 10:56:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeHQ2-0004O4-6w for emacs-devel@gnu.org; Fri, 30 Sep 2022 10:55:14 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:49321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeHQ0-0003fl-KE; Fri, 30 Sep 2022 10:55:13 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 53EDA5C00EE; Fri, 30 Sep 2022 10:55:10 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 30 Sep 2022 10:55:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:cc:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1664549710; x=1664636110; bh=0w 1Ah3kLM4NPSGXO3mtcKx7J2U8rzwp5c6sMRbbSN88=; b=XCfdXyKGkZrED3GxZr F1ZsO6NeGX9Qc970C8gcNMj4vTL6UPpkOD+GeN6eT7VeGPCY2qCxrTc44W4TP1zw PlAAToFqij010Fj+z+0/F8d41Qv81YPAvzuJ2GD/C2Z+9O77JnpmpkCmIPZBI46i hyGaGVA15YUqh1NKQc7FQOlDmmQ6KJrpp3FxhZ43IKb/Hg1smHjVDcK9HgoXJGc8 6DNRzObVCxOcvc/AFvBO/oIWxM5peOQDcoXnOrXUR4JOiPsF/9Ref6L2xyM1CNmt jvQz1ZoL1I37D+HZs61t2vhJZAO79vuTTGv/31uOGhk6N2rUxKoFhgXfGxtW2S1S hQpQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1664549710; x=1664636110; bh=0w1Ah3kLM4NPSGXO3mtcKx7J2U8r zwp5c6sMRbbSN88=; b=HPaYFGrONwg3MAcz2eZu/KGwYoE4g2EeFroUBET7xu1r MkPzzkwzbccXmuz0R9v8gsVkTrWfplh9biQJvfE7n3ZRtgYnQrOGJaEMQWaDe+Zo 8NdZsfDbmemSqYRc/lIo5W9AAmNaBYGpAILFx46F13SQhdSMMI98+Lb+JinbrJKb /1n5yeGzWQhFcdmUkim7y342pYNUCp5509i6dhJqz7dDZSGzQA8IQ3Lu5jYOLZD0 KP23kaJcpxKsNqNW5JNHrafK6vNWNOGcEQbXoFqo9g0GSoigB5zJMz6g45xf1FpR 8BxqOnAAECVDLh12GK1vrpGw7ge1z3ZLmGsSXDkAPg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeehvddgkeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffffkfgggtgesthdttddttdertdenucfhrhhomhepufgvrghn ucghhhhithhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqe enucggtffrrghtthgvrhhnpedtffdvffeuleeuvdetkedvveehgfehvdegvefghfevudek geegleevgeejkeetkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg X-ME-Proxy: Feedback-ID: i23c04076:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 30 Sep 2022 10:55:09 -0400 (EDT) Original-Received: by melete.silentflame.com (Postfix, from userid 1000) id D330F7E418F; Fri, 30 Sep 2022 07:55:08 -0700 (MST) In-Reply-To: <8335c9dkyf.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 30 Sep 2022 16:56:56 +0300") Received-SPF: pass client-ip=66.111.4.28; envelope-from=spwhitton@spwhitton.name; helo=out4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:296520 Archived-At: Hello, On Fri 30 Sep 2022 at 04:56PM +03, Eli Zaretskii wrote: > This is what I'm asking about: what exactly triggers the compilation? > Just installing a package shouldn't do that, only loading it into > Emacs should. We currently bytecompile during package installation, and would like also to do the native compilation at that time. The main reason for bytecompiling at package installation is that we have logic to purge and recompile anything whose dependency versions have changed, which means that all bytecode installed on Debian systems was generated using known-correct macro definitions. Historically ordinary Emacs processes running in non-batch mode have not guaranteed this; I recall that the Org-mode developers discouraged use of ELPA to install newer versions of Org because of these sorts of issues. A secondary reason is that it makes sense to compile once, system-wide, rather than repeatedly in each user's home directory. It is also nice that you can know everything is already in place once your package is installed, so that I can unplug my laptop once the package manager has exited, and I know that it isn't going to do any CPU-intensive compilation and drain my battery. -- Sean Whitton