From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Colin Baxter Newsgroups: gmane.emacs.devel Subject: Re: Native compilation on as default? Date: Thu, 26 Oct 2023 13:07:52 +0100 Message-ID: <8734xxbn8n.fsf@yandex.com> References: <83legs281v.fsf@gnu.org> <877cn9bzsc.fsf@yandex.com> Reply-To: m43cap@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="16568"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (gnu/linux) Cc: brickviking , emacs-devel@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 26 14:08:50 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 1qvzAO-00041B-8G for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Oct 2023 14:08:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvz9h-0002MD-MH; Thu, 26 Oct 2023 08:08:05 -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 1qvz9f-0002M2-9t for emacs-devel@gnu.org; Thu, 26 Oct 2023 08:08:03 -0400 Original-Received: from forward500a.mail.yandex.net ([178.154.239.80]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvz9b-0002H7-NV; Thu, 26 Oct 2023 08:08:03 -0400 Original-Received: from mail-nwsmtp-smtp-production-main-59.iva.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-59.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:493:0:640:ecd:0]) by forward500a.mail.yandex.net (Yandex) with ESMTP id 7DCF561533; Thu, 26 Oct 2023 15:07:54 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-59.iva.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id q7PI2t4W0qM0-NSK5LGmD; Thu, 26 Oct 2023 15:07:53 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1698322074; bh=JNXmwUGIOE3R6iyarD8G5M0MjXEa7RaJ8WaNoUzp6r8=; h=Message-ID:References:Date:Reply-To:Cc:In-Reply-To:Subject:To: From; b=xSY10o8iskFEnZ7DWi+Xh7Cm6R8Bgge7lDqmghL2x8A4nIhJMegSg5MPQlInPzQwU kpmv/LBC+mRU5S4j4RN6A+FO6OvjvdRexcPZpm3MKIP4LSHqaz73k7Ocpkxvu0NZrC fX8dtsGj47Zi2a8YvA/DCtfWe9ECYxM8UXMCU2ak= Authentication-Results: mail-nwsmtp-smtp-production-main-59.iva.yp-c.yandex.net; dkim=pass header.i=@yandex.com In-Reply-To: (Andrea Corallo's message of "Thu, 26 Oct 2023 05:41:33 -0400") X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T Face: iVBORw0KGgoAAAANSUhEUgAAAEkAAAATAgMAAAChCMjeAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEX/zAABCWP///8I RHjYAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+UFEAk5BvqS634A AAAbSURBVBjTY2BgCA1hYA0FAxDDgQEERsXoIAYA2F9Eb3cpB+AAAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjEtMDUtMTZUMTA6NTY6MTcrMDE6MDCh/kkpAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA1 LTE2VDA5OjU3OjA2KzAxOjAwTyZ6HwAAAABJRU5ErkJggg== Received-SPF: pass client-ip=178.154.239.80; envelope-from=m43cap@yandex.com; helo=forward500a.mail.yandex.net 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311907 Archived-At: >>>>> Andrea Corallo writes: > 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. Well, I do have libjccjit-6-dev on a machine running Debian 9.13. This is the machine on which I did try native compilation. As I said, I could see zero change in performance of my emacs (30.0.50). There's also libjccjit-8 on another machine of mine running Debian 10.13. I now always compile with "--with-native-compilation=no". Are you saying that this configure option will not in the future be sufficient and I will have to make sure there's no libjccjit versions on the system? Best wishes, Colin.