From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Enabling native compilation by default when libgccjit is present Date: Sat, 04 Dec 2021 03:48:18 +0100 Message-ID: <87r1atrsp9.fsf@gnus.org> References: <83wnkm94oq.fsf@gnu.org> <87y251vdeh.fsf@gnus.org> <87lf11tlzf.fsf@gnus.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="6181"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Eli Zaretskii , Andrea Corallo , emacs-devel@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 04 03:49:03 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 1mtL6l-0001PT-6W for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Dec 2021 03:49:03 +0100 Original-Received: from localhost ([::1]:57714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtL6j-0000K9-MX for ged-emacs-devel@m.gmane-mx.org; Fri, 03 Dec 2021 21:49:01 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtL6A-00086H-NE for emacs-devel@gnu.org; Fri, 03 Dec 2021 21:48:26 -0500 Original-Received: from [2a01:4f9:2b:f0f::2] (port=48668 helo=quimby.gnus.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtL68-00074C-DG; Fri, 03 Dec 2021 21:48:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=p9b3/P/ewcXrupWvEkZvLUdwduz3rAnBWwgfEL0MHNk=; b=TVmnD0MLHDEBrxa+pAy+V7XVQq E1+st1h31rUWZ2bBwGEvGVqvUbesGTuP6PMNmqelK1JSR69dtabgrM3ZvDB2durxkwuoFBuu6rCvf W5nRsDt1ynoMDQAXfUCAdkcQLp80DOBqGg/6pp9pU3thiEkbuK01evwsztA4WAR17lH8=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtL63-0001Ox-6Q; Sat, 04 Dec 2021 03:48:21 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEXatYPjvIfowovJ pnnKpZl4ZHukl6A8KEb///+4QDp7AAAAAWJLR0QIht6VegAAAAd0SU1FB+UMBAIoMc/IIDkAAAGU SURBVDjLdZPrbcQgDIBN0wGAToCl/kdCpy7QdoETzQS5TpCyfv0ikOvV0uUSf35hbABwoYunH39H RARH/6JFTCGkw4jBQ4F/9BQSLJQJJs6AClIKLphrVIBShPp2HwHJgAvAtUolBrLTIgksGc4eBLyn l1K87yBYKM9FvOSRQwAdmUABlgEcl845Si5lKdIb7o4AiVBEzIFD8ZmkXhFVI3qJqrnjdMDkpYn4 R5KG+qgs27VuN5areDD4bofUuradck9gXw+QMEioJwHVAJnIubrHfhMlYwWug639bFzDPWhkWm/1 7PFGuq/XxuZ7m8Hzu6PSK35WKXmAC3UPymWt92BtJ9lpao4ceuwOqKG9iXYNKM2N04iO9juxS3KD Mui8BR7oEflTAA2lrQfYwGlyulkDbkyPl/3hQJR+obmKerPqgdR/Nlty4nfsydlEgHdsYkQOmGIf Jz5IkMexaqqOaQAhqLOvs6Wgu3SgCw3aA0NjQ73O63mjTdllWm+TbF7cj8lwgZz7u5v1dNUZHgiD Lmd9+QWQzpHIA5uauAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0xMi0wNFQwMjo0MDo0OSswMDow MB8B/uIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMTItMDRUMDI6NDA6NDkrMDA6MDBuXEZeAAAA AElFTkSuQmCC X-Now-Playing: Depeche Mode's _Music For The Masses_: "Pimpf" In-Reply-To: (Stefan Kangas's message of "Fri, 3 Dec 2021 14:39:15 -0800") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:4f9:2b:f0f::2 (failed) Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 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, RCVD_IN_DNSWL_MED=-2.3, RDNS_NONE=0.793, 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" Xref: news.gmane.io gmane.emacs.devel:280886 Archived-At: Stefan Kangas writes: > That sounds a bit odd to me. Why would users with slow machines > constantly rebuild Emacs, to the point that they get turned off Emacs > altogether? Wouldn't they just settle for running the latest stable > release long before that point? Emacs' release cycle is a bit slow, so there's a sizeable number of people that build from git. > Of course, many people do track master, but I would put them firmly in > the "enthusiast" camp. Such users will surely understand that there is > a cost associated with running master, no? I'd rather not scare away more people than necessary. "I wanted to try Emacs, but it took twenty minutes to build, so I'm using vim instead" is certainly something I can see happening. This reminds me of something I've been wondering about, but never actually looked into. One of the things I was expecting nativecomp to make faster is byte compilation, but it doesn't actually seem to make any difference, which I find really surprising. Here's my test case: $ rm lisp/gnus/*.elc lisp/org/*.elc ; time make -j8 This is around 10% slower with nativecomp than without, which just seems backwards. So I wondered whether somehow bytecomp/byte-opt and friends weren't compiled natively or something, but dropping in (message "HELLO: %S" (type-of (symbol-function 'byte-compile-warning-enabled-p))) into gnus.el indicates that it is. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no