From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Enabling native compilation by default when libgccjit is present Date: Mon, 06 Dec 2021 14:59:05 +0200 Message-ID: <83zgpd28km.fsf@gnu.org> References: <83wnkm94oq.fsf@gnu.org> <87y251vdeh.fsf@gnus.org> <87lf11tlzf.fsf@gnus.org> <87r1atrsp9.fsf@gnus.org> <8735n85fa5.fsf@gnus.org> <87r1arskmq.fsf@gnus.org> <87r1arsjpu.fsf@yahoo.com> <87ilw3sjlr.fsf@gnus.org> <87r1ar4mi2.fsf@gmail.com> <874k7nw32n.fsf@gnus.jao.io> <87mtlfasg4.fsf@telefonica.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9055"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ofv@wanadoo.es, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 06 14:04:56 2021 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 1muDfr-00029y-Bi for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Dec 2021 14:04:55 +0100 Original-Received: from localhost ([::1]:41596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muDfp-0002Ar-GY for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Dec 2021 08:04:53 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54758) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muDaO-0003uH-D6 for emacs-devel@gnu.org; Mon, 06 Dec 2021 07:59:16 -0500 Original-Received: from [2001:470:142:3::e] (port=49840 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muDaN-0002kT-KZ; Mon, 06 Dec 2021 07:59:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=fzlBem8pgwiUYEcYwbtbzp/0j0705WQ0JaPBziMcf1M=; b=BCNkd/g5FJiR eeScGF6WYMotyKIlT9wQcrXYcxHwoQW4KaY7Tq+36pDglZ+AgxGBVCeRulNdWiT/swMcb6sx/q2NV XFza/S4+x+lLlP9OE3FTdFNx8odpuO9Gp4JhzsGignH9FxmvI7MK3hkYqA4EHRH1goFcn5XxvVHoC tUClzxCm6fx73xUpOO+3AiDJXc5CA5XnYpOSUgXCVNo0FYbe/mnZ5dIvfH3OiBtXvj0/KDvUytK4V UK/FEegyqkATydtyE1WrQZIJWO75GGHpMkcfLkFUaqGjiyx8G76UDSd6ogaQvgpZjbgHt1cLPgcDQ yJwTfk8NdBruRJ1GeEYW8w==; Original-Received: from [87.69.77.57] (port=2051 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muDaF-0004DO-Cb; Mon, 06 Dec 2021 07:59:07 -0500 In-Reply-To: (message from Richard Stallman on Sun, 05 Dec 2021 23:33:54 -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" Xref: news.gmane.io gmane.emacs.devel:281093 Archived-At: > From: Richard Stallman > Date: Sun, 05 Dec 2021 23:33:54 -0500 > Cc: emacs-devel@gnu.org > > > The reason for this is not hard to understand for anyone with a little > > bit of knowledge about binary code optimization. For instance, if your > > Elisp code consists on invoking opaque C primitives, the gain of > > compiling it to machine instructions will be mostly irrelevant. > > I wonder if this could be a guide towards doing native compilation > only in the cases where it will provide a benefit. I don't think this could fly in practice, because I see no way of predicting when it will provide a benefit. The same primitives could be combined into very different Lisp programs, and no useful program consists only of calls to primitives, there's always some Lisp involved.