From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Suppressing native compilation (short and long term) Date: Mon, 03 Oct 2022 15:29:40 +0200 Message-ID: <87edvp6nnf.fsf@gnus.org> References: <87bkqxf1ij.fsf@tethera.net> <8335c9dkyf.fsf@gnu.org> <83tu4odez7.fsf@gnu.org> <871qrrpkgx.fsf@trouble.defaultvalue.org> <834jwnbi6c.fsf@gnu.org> <87mtafnun5.fsf@trouble.defaultvalue.org> <83sfk6ahty.fsf@gnu.org> <8735c6b0wo.fsf@gnus.org> <87y1ty9lha.fsf@gnus.org> <87lepym6ok.fsf@trouble.defaultvalue.org> <877d1i9h7k.fsf@gnus.org> <83edvqyr3q.fsf@gnu.org> <874jwl8e4p.fsf@gnus.org> <87ill16t3a.fsf@gnus.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="38415"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , rlb@defaultvalue.org, david@tethera.net, emacs-devel@gnu.org, akrl@sdf.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 03 15:37:32 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 1ofLdT-0009lr-Ve for ged-emacs-devel@m.gmane-mx.org; Mon, 03 Oct 2022 15:37:31 +0200 Original-Received: from localhost ([::1]:34248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofLdS-0008M2-Vn for ged-emacs-devel@m.gmane-mx.org; Mon, 03 Oct 2022 09:37:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofLW9-0005T1-BA for emacs-devel@gnu.org; Mon, 03 Oct 2022 09:29:58 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:51498) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofLW7-0008O3-NR; Mon, 03 Oct 2022 09:29:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From: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=6SCDcvLOzRyOC1IgqSl/lqVZmsqxib3PRIhqhVxTMkQ=; b=pnyPuMoYMKj4kd9jAGQ36kHW08 edh66CtgxUyDR3b5dIov9BW77Ed0LWAm7I6Iz3zztat8UtvGTrKa9Y+V3U5pDPumWEjv8ehTEi7Pz +f3yQNPi7ElxG5/aLN//24vMEY4oMjYN5P/Pbqr4MHIsOXSfoVDcKSYXpbO487eSxn9s=; Original-Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ofLVs-0001Cu-RQ; Mon, 03 Oct 2022 15:29:43 +0200 In-Reply-To: (Stefan Monnier's message of "Mon, 03 Oct 2022 09:07:52 -0400") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUVFBNsaWKFgXiy rKDo4ND///9JTNw2AAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YKAw0bB2tGKBoAAAGuSURBVDjLpZRr 0p0gDIYTdAEJugBBFsBtASrsf00NXj49p3amnWb8oT7kfSEEAFnCMmujrcT+1QLaGxt+hH2AZ+hH BhoizZoAjDVNd8IG0IAAxUZAQJHVQBiBSYAVoJkBJ0CjZ9AnwAFIixZ0JIAtWDiAluRdQmyU4dBZ OgCzmAugIKomsNYm7ubiS0ObaLCzkRFtrcDasrF2jvaMZOOcUgKXaqy5fkT7BPf18wpw9f9AuUH+ i4yc0j97lBTzHzJWDPp1VgGX7hWkeFTkN1BCfgW1RPdmHoq1AnX+BCl54NnVso3fZc/kxCHQ+CVV KnUepb2EfoAg/4CgTpvOByinHo1rJwWnMegdlNQeiWX00mqgXI07SFeKFynofH9ON+WrTYLHOrlN HUBGXxu0bqpOysMB0r3TCzctCntJUr37rfiB+mjxrNXdGts2egToGxgfCdQWyHJspCYw3AnUHNQK Mpor6J8EmSqcMU8ZhnSCgrggFjlbkFUQqWsNi5OhuAJWUmIgz+UwQfOGfsOgnmX34LgKQujLx0YR xE7q3tAqCwEtB9Gc187jQnm5ZE7yC1jDyqqD/HG9AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTEw LTAzVDEzOjI3OjA3KzAwOjAwMbExSAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0xMC0wM1QxMzoy NzowNyswMDowMEDsifQAAAAASUVORK5CYII= X-Now-Playing: Cirkus Modern's _Cirkus Modern_: "Fin de siecle" Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, 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:296746 Archived-At: Stefan Monnier writes: > AFAICT so far I've heard of two reasons to "disable automatic native > compilation": > > A) Avoid the "uncontrolled" (mostly in terms of *when* it happens) > resource usage associated with it (e.g. battery). > > B) Avoid writing to $HOME. > > For (A), I think that (setq native-comp-deferred-compilation nil) seems > perfectly sufficient (you can set it early in your (early) init file and if > every blue moon some native compilation still happens because of a file > loaded before that `setq` it shouldn't be a big deal). I've now introduced the new inhibit-native-compilation variable and deprecated the native-comp-deferred-compilation variable, and also initialised stuff from EMACS_INHIBIT_NATIVE_COMPILATION. (And made trampolines not write to the cache in this case.) > This said, we generally do make efforts to try and avoid writing > silently to ~/.emacs.d, so maybe we should rethink our choice of > ~/.emacs.d/eln-cache as the default location. I think that's a fine location in general, and now there's an understandable and documented way to make that not happen, I think it's even better. > E.g. maybe when run as root, we should write .eln files somewhere under > something like /var/cache? And maybe when not run as root we should > favor something underneath ~/.cache? > > Stefan "who finds the idea of running Emacs as root a bit scary" I run Emacs as root all the time.