From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: Native compilation on as default? Date: Thu, 26 Oct 2023 05:41:33 -0400 Message-ID: References: <83legs281v.fsf@gnu.org> <877cn9bzsc.fsf@yandex.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32643"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: brickviking , emacs-devel@gnu.org To: Colin Baxter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 26 11:42:24 2023 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 1qvwsi-0008I3-0Y for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Oct 2023 11:42:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvwrw-0002ND-Po; Thu, 26 Oct 2023 05:41:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvwrv-0002MQ-9Z for emacs-devel@gnu.org; Thu, 26 Oct 2023 05:41:35 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvwru-0006Iq-Fu; Thu, 26 Oct 2023 05:41:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=XVEGp7KhXo/iZcnYtrtMVR2hwBdL1YsPA/SdAyGTaPk=; b=JbnDuNKAquySDAwrr3gU 3e9Wjz9964z0vrzCADNx5BkOIg3LGpPdY0HnVe/QQOqUqoRYi4E0wV1xMQcXGM4wgS7O6r2cQVOiX LK7zE2w9Op1zV5Tc+l+sePsAXIAKAWZi8qTGdT0qpuQV2tswY52dSYqVZ0f+3rTK5Bfk+bzvgYjwY 1kYLdCnnWMoVj5lWbe6eBWcysLg/o9cnV/2SyxG1uY5eOj9Uvcd0Zf6sL8fdHBLVrW+jKn7uW4oL2 ZJnPpdvwQ26YBSTwr3OhO67odajJW9PRgzFiQpW+jAG+IZL35rKdbzgPxelD3vApszC0OjZO/ESLt 7Kb0qbWNi73LdA==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qvwrt-0006Hn-Rx; Thu, 26 Oct 2023 05:41:34 -0400 In-Reply-To: <877cn9bzsc.fsf@yandex.com> (Colin Baxter's message of "Thu, 26 Oct 2023 08:36:51 +0100") 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311893 Archived-At: Colin Baxter writes: >>>>>> brickviking writes: > > > On Thu, 26 Oct 2023 at 15:28, Richard Stallman wrote > > (in part): > > >> Building Emacs with native compilation is a lot more fragile than > >> without. Meanwhile, many users don't need it because Emacs is > >> fast enough for us without it. > >> > >> Theefore, we should not enable native compilation by default. > >> > > > > > To add to what RMS has stated, I'm on an older machine with not a > > lot of room left on the primary partition. I understand that's on > > me, but I wanted to add my notes about my local experience. > > > I compiled Emacs as a test with AOT turned on, and found that it > > started creating *.eln files. Lots of them. I recompile Emacs on a > > fairly regular basis, and after one compile/install of Emacs, I > > noted at least an extra 40Mb after about an hour's running with > > erc, org-mode and ef-themes (amongst others). On my older 2008-era > > machine that's starting to really show its age, the extra .eln > > files were not really worth it for me. I wish I had better news, > > I've been wanting a sped-up emacs for a little while now. To be > > fair, I _thought_ I saw a speed increase in what amounts to > > display code, but I'm not a programmer, mainly a user. > > > Is there a facility to purge out-of-date versions of the .eln > > files for a version that is installed later, and is that facility > > easy enough to look for via C-h f? This might make native > > compilation easier to swallow. > > > Regards, brickviking (Emacs 29.1.90, GTK3, Linux-x86_64) > > I would like to second this. I too run old machines - 15 years old , but > still giving good service. I have tried native compilation on one, and > noticed only the presence of a large number of extra files with no > change in performance. I'm not a developer and don't do anything fancy > on emacs. > > Po makes a very good point. I compile from git and only one machine has > the necessary library (or libraries?) > > Best wishes, > > Colin Baxter. Hi Colin, again, the proposal (see original message) is to have it on by default *only* when libgccjit is available. I bet you don't have it installed on those machines as AFAIK the only SW in production that uses it is Emacs. BR Andrea