From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.devel Subject: Re: Suppressing native compilation (short and long term) Date: Thu, 6 Oct 2022 13:49:44 +0200 Message-ID: References: <837d1gvt35.fsf@gnu.org> <87sfk3yl10.fsf@yahoo.com> <87o7uqtlsl.fsf@yahoo.com> <83sfk2rzjs.fsf@gnu.org> <87k05du6x0.fsf@yahoo.com> <83tu4hqxp8.fsf@gnu.org> <87ilkxs9yg.fsf@yahoo.com> <83czb5qsyk.fsf@gnu.org> <8335c1qmy3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WH+0IIwqNQHehuDa" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6553"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 06 14:11:51 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 1ogPjC-0001XM-Kq for ged-emacs-devel@m.gmane-mx.org; Thu, 06 Oct 2022 14:11:50 +0200 Original-Received: from localhost ([::1]:52992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogPjB-0002mx-7Y for ged-emacs-devel@m.gmane-mx.org; Thu, 06 Oct 2022 08:11:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogPNu-0004CG-K7 for emacs-devel@gnu.org; Thu, 06 Oct 2022 07:49:56 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:48592) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogPNr-0002RQ-6l; Thu, 06 Oct 2022 07:49:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject :Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=90XGdCIFJX+XlYZATEXiTit3xoAWhAFAaN3VIUchYmQ=; b=HfRoQfKO+Bw1wwE9bSLEIKPBww 8ZarDVi6DrFDhV6dF4PlmaZEJTTDvX65FK2wS7xBMu3uBMrxf3FqMn5wm1PFUMdci5TV1htW2Ee0J sZmIUuBOLEylOqz9c2X90PgtFORnF3Y2fQ3PFQRRc9B82Am09E6Kmc6F6lBM3nCVg0Kct0UMESoAZ qcyn5rTKN0oq3g8bYUjejC8DiwdDK24PXDZzy7yu+zCPUo+BIZ/EJsEnse77wn6/GhDjnd4Q7DgQW 9ZKLx0CuoCZ3r4eVZCFIhg33AmG0H60n7u1EPceaktLKUU1iBERMiEvfXF1cFEUgCimmCNmDCrSe6 u416SDdQ==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1ogPNo-0007iF-4v; Thu, 06 Oct 2022 13:49:44 +0200 Content-Disposition: inline In-Reply-To: <8335c1qmy3.fsf@gnu.org> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=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:297093 Archived-At: --WH+0IIwqNQHehuDa Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 06, 2022 at 01:13:40PM +0300, Eli Zaretskii wrote: > > Date: Thu, 6 Oct 2022 11:02:44 +0200 > > From: > >=20 > > > > The solution I would propose would be to defer JIT native-compilati= on > > > > until the computer is on AC power, as determined by battery.el. > > >=20 > > > We could have such a feature, but how to implement it? If we use a > > > timer for that, the timer itself will drain the battery. > >=20 > > Guessing from a previous mail by you, the correct way to achieve this > > is to compiler results to a non-existent directory, right? >=20 > No, this is a completely different use case. Now I'm confused. Does the non-existence of a target directory disable compilation or just the writing of the compilation's results? > We _can_ disable native-compilation (and had this ability for a while, > since Emacs 28 development); the issue here is how to re-enable it > again "when computer is on AC power". >=20 > > To me that feels strange, but I could live with that. Can it be documen= ted? >=20 > What would you like to be documented, exactly? that pointing HOME a non-existing directory is the way to either inhibit JIT compilation or writing of the compilation results to disk (depending on the answer above). Cheers --=20 t --WH+0IIwqNQHehuDa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCYz7A0QAKCRAFyCz1etHa RqERAJ9Rps4qQeFiGdQHsm/GnG9jKnIqIgCbB+WeT8jn1C61tWHZUOO9elJZZkY= =b4T/ -----END PGP SIGNATURE----- --WH+0IIwqNQHehuDa--