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: Should native compilation be enabled by default? Date: Tue, 05 Mar 2024 04:57:13 -0500 Message-ID: References: <86sf19p0hw.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="18388"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 05 10:58:13 2024 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 1rhRYr-0004Z8-6n for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Mar 2024 10:58:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhRYI-00010P-K6; Tue, 05 Mar 2024 04:57:38 -0500 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 1rhRYG-000104-4k for emacs-devel@gnu.org; Tue, 05 Mar 2024 04:57:36 -0500 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 1rhRYF-00063I-St for emacs-devel@gnu.org; Tue, 05 Mar 2024 04:57:35 -0500 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=8BSwCTfhGez80p2hsPMgt0OvU2d92lhua/1Sb2BZ05M=; b=PGhd+x2BjmrI5WL13Xs7 d4oA02CWGJHnpSNTbTG3UnBlEWxaukWzgkn8yH2crjhWFZiMg0GkxXF/OjVV4SF+9Bx/vxc4Epa6W GmbMXb/uJmSNx1svcdkDp7mOgr25/xY9MOwTkQDa9qNmJJXQ4iep7EKg/WvF3AcZeWv9yXRPbaNSU non2qOsVyUEbmRpwOW9CQ7JU/nyyYgJ7gKcfTErpsip4zvjSFQafAoZI4O1Q3QkjaU3fxX3gtBikH aLu5ju4ae3Uunu1/9hjD0sLfJBb51lCdScJpIVstDrdrAbhw/hUvOA2nnR/j68HkgCxuq0BHx900U TG1Ev4QP4ymWWw==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rhRXy-0007Sa-EI; Tue, 05 Mar 2024 04:57:21 -0500 In-Reply-To: (Richard Stallman's message of "Mon, 04 Mar 2024 22:42:32 -0500") 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:316820 Archived-At: Richard Stallman writes: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > > > Enabling native compilation has disadvantages as well as advantages. > > > What are the disadvantages? > > If Emacs compilation by default causes native compilation, it will be > slower. > > It will also be more fragile. Byte-compilation is a self-contained > Emacs feature, and aside from occasional bugs that affect specific > code, it never breaks. On general principles we can see that native > compilation is likely to go wrong because something has disappeared, > or because of bugs in other programs that you wouldnt otherwise ever > use. > > Native compilation is useful mainly for power users who want > to run Lisp programs that normally are too slow. There is no sense > directing most users into doing things gthe complex way instead > of the simple way. I don't see why native compilation should be more complex for users, AFAIK is transparent. Anyway as a data point: AFAIK major distros decided since a while to ship with native compilation as (I assume) they deemed it beneficial for their users. I believe they even did it *before* native compilation went on by default (on system with libgccjit installed) in our configure. Andrea