From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Should native compilation be enabled by default? Date: Thu, 07 Mar 2024 21:29:29 -0500 Message-ID: References: <86sf19p0hw.fsf@gnu.org> <87a5ncfm1r.fsf@> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36254"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, emacs-devel@gnu.org To: =?iso-8859-1?Q?Bj=C3=B6rn?= Bidar Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 08 03:30:27 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 1riQ0A-0009CF-Ku for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Mar 2024 03:30:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riPzH-0000me-Kg; Thu, 07 Mar 2024 21:29:31 -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 1riPzG-0000mQ-8p for emacs-devel@gnu.org; Thu, 07 Mar 2024 21:29:30 -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 1riPzF-0005Hu-Ff; Thu, 07 Mar 2024 21:29:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=RkGv3G6UqBZcEEEh4AfKchWlTluZc11xqHHqCDzChME=; b=PmyZa11vPIo+ Nt7TpzYnym0UAWO6JpEalOZmoVVzZFpSB6xzsSiW3a1F931kIqS8lPiBVc4NUTJNMSvwYQcvMFP9+ M6ixwLe0QK2abFzx2Garu95GSZPU8QFNKoZSjUTuxYJOjMMh4gI6D6/flyAI69K111EXss3MGpTWe KQz2SyBqFzBZTrM3rApSOREppU/9qI3OEc8FNpqn4+ACzlU7RwISFY1eBZOzWwpgXCtDyKvhZAQXd T/4H7rLYjv6Ju/1gi/s6SXYKlgBzRoA9RsUyJoK88k2E8BO71MFraCpMqyQZqRUeY33p2LMbZrKk3 BY1zSIUNlTXVmdnFLbcvgQ==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1riPzF-0006kt-4v; Thu, 07 Mar 2024 21:29:29 -0500 In-Reply-To: <87a5ncfm1r.fsf@> (message from =?iso-8859-1?Q?Bj=C3=B6rn?= Bidar on Tue, 05 Mar 2024 22:42:08 +0200) 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:316885 Archived-At: [[[ 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. ]]] > > If Emacs compilation by default causes native compilation, it will be > > slower. > > > At first a little but once the compilation for a file is done Emacs will > be faster. That is true in a sense, but also misleading due to simplification. Some operations are annoyingly slow and their slowness is due to running loops in Lisp code. Those could be noticiably faster with native compilation _of the code containing those loops_. Native-compiling some files could be worth while. But most operations are either (1) fast enough for a user-driven interactive program or (2) get their slowness from either running C code or (on large files) swapping. For them, native compilation is not worth while. The best trade-off could be to mark some individual source files as worth-while for native compilation, and by default do native compilation only for those. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)