From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.devel Subject: Re: Should native compilation be enabled by default? Date: Fri, 15 Mar 2024 17:47:44 +0100 Message-ID: <877ci3fnm7.fsf@dataswamp.org> References: <86sf19p0hw.fsf@gnu.org> <13305.117729918$1709671403@news.gmane.org> <87y1aku44q.fsf@dataswamp.org> <87wmq3vf57.fsf@yandex.com> <877ci3iiwj.fsf@localhost> <87sf0rvdpt.fsf@yandex.com> <87le6jvd1r.fsf@yandex.com> <87frwrfrlv.fsf@dataswamp.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="20196"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: emacs-devel@gnu.org Cancel-Lock: sha1:kgntmW6Uuy+dmqQRpQCXe/F0PEs= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 15 19:27:54 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 1rlCHY-000501-Du for ged-emacs-devel@m.gmane-mx.org; Fri, 15 Mar 2024 19:27:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlCHF-0006kv-LX; Fri, 15 Mar 2024 14:27:33 -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 1rlAiy-0001ot-FG for emacs-devel@gnu.org; Fri, 15 Mar 2024 12:48:05 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlAiv-0008Sv-ST for emacs-devel@gnu.org; Fri, 15 Mar 2024 12:48:03 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1rlAir-0003Im-FD for emacs-devel@gnu.org; Fri, 15 Mar 2024 17:47:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 15 Mar 2024 14:27:30 -0400 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:317090 Archived-At: Andrea Corallo wrote: > One gets messages only if a file being compiled has issues, > BTW since 8e5baaddec2 we are by default way more selctive on > what we report during native compilation so I don't think > this problem still exists. If people intend to fix those issues it is okay to report them, and ideally everyone that writes Elisp should make sure their code don't produce any warnings anywhere. Me, personally I enjoy making improvements to my source and I never care or stop to think if the improvements are big or small. But seeing the same warnings over and over in other people's source makes me think maybe they don't respect them and for this reason don't fix them. So we should examine what warnings people actually considers important enough to fix. Real issues obviously should always be reported. >> Since everything is are to be compiled anyway, I don't see >> why that has to be done little by little. Better to just do >> it once and be done with it IMO. > > Not everything needs to be compiled unless one needs to > load everything. Yes, but everything loaded needs to be compiled and compiling everything implies whatever is called for is ready. I don't think searching the cache will ever be a factor so the only drawback is installation time. But I don't install Emacs that often and the process is automatic. BTW, now this gets a bit confusing as this option, --with-native-compilation=aot doesn't necessarily imply "everything" is compiled. In practice, I interpreted it as a step in that direction - except for ELPA packages and personal files, maybe? But I have to look up the exact meaning. But what I meant was it is compiled during the installation process, and much less so during Emacs use. So you don't get the warnings and popup buffers. -- underground experts united https://dataswamp.org/~incal