From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Myhrberg Newsgroups: gmane.emacs.devel Subject: Re: Enabling native compilation by default when libgccjit is present Date: Sun, 5 Dec 2021 20:00:50 +0000 Message-ID: <1F4D4305-BD00-4EAF-900F-34F0C1315359@gmail.com> 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> Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.20.0.1.32\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10028"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: "Jose A. Ortega Ruiz" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 05 21:02:13 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 1mtxi7-0002PY-Iy for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 21:02:11 +0100 Original-Received: from localhost ([::1]:57130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtxi6-0005bj-D2 for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 15:02:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtxh0-0004SL-2w for emacs-devel@gnu.org; Sun, 05 Dec 2021 15:01:02 -0500 Original-Received: from [2607:f8b0:4864:20::d2a] (port=43915 helo=mail-io1-xd2a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtxgy-00053b-52; Sun, 05 Dec 2021 15:01:01 -0500 Original-Received: by mail-io1-xd2a.google.com with SMTP id z26so10518809iod.10; Sun, 05 Dec 2021 12:00:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=KcgUPuYJ6CwlRDBl51EWbRFeAj7c9l9WorAtHV0e3iU=; b=EoQNzCzCXxaiokB6INHy1j9kSiDRiWvxqw9fJGnrDN7BGgrIMSkhnl3zEUj/2bqle+ z4sSvBe2Hwya1lbJUU+APO4ecnK3/d/BJnwkFa2F8bh5ioHOGTdcj/jA8DSIzCbi5jyT rQGv8Fz+WMx/H1Zd8FhVTYKal8PStn/BB6izOpJbDVh98IGQXhjR5tZO/OSSNnmsyBZt FQnV7B3RdSVrTPjpEfOHPWrOMfntGJM5+v2FAis4QkX9shTEc84hcUgp2W84X1z+zvQE KoYyT6tAWcGfm8sNKv0ggUORx3Qi88tFnCuDDIFSoUj0O7zh1FNiH7Uid6TotdxFrATy jtHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=KcgUPuYJ6CwlRDBl51EWbRFeAj7c9l9WorAtHV0e3iU=; b=lZc+w6nsZ5jucCWK5xFBlofX6lns3ThMNMoi5rV6VkKHzbq0e/Z1DOWHkwCVVjU0cr e9SZpPM4yKOW/R8nZBrtaY1UShQ43XLvtgeT2vfaJK5kPxFvJdcAO4OQIsu0oeMeutak pQeTaXt7x/+H9LExnx3FyuxQ8oBM/l6XClMU3c8QgLnDI0wdtJh5bhL3ACkdKEy/Yzeu I7+NAUq56bzPFvmYTn/BQjQs3vr1Ty75Zvcf/VT2u5UGbL32GPk600yPOE48bIKt60p3 atf8kYjUsV8yLImMn0deyZ/jbfyHCBst7OYZ3M2zXU9z9Dv52X8PtCY8ytrmjHbuf8fT gS/A== X-Gm-Message-State: AOAM531P2T1AZNwHx8b9Vub3KD/EandDccEarYWJc+4H2yZNwmISf1j0 gcZKrDxA/GpAZPebIkOh92fll034prE= X-Google-Smtp-Source: ABdhPJw36QahRCosPQ+cpEaS4U+KVlRlmbtIUeeJEXqlvQb6pnYucqLueXeZPqTCioywERVizdwyrw== X-Received: by 2002:a05:6638:2656:: with SMTP id n22mr36548020jat.35.1638734453314; Sun, 05 Dec 2021 12:00:53 -0800 (PST) Original-Received: from auth1-smtp.messagingengine.com (auth1-smtp.messagingengine.com. [66.111.4.227]) by smtp.gmail.com with ESMTPSA id s18sm5164999ilq.25.2021.12.05.12.00.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Dec 2021 12:00:53 -0800 (PST) Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 7484927C0054; Sun, 5 Dec 2021 15:00:52 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 05 Dec 2021 15:00:52 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrjedugddufeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpegtggfuhfgjfffgkfhfvffosehtqh hmtdhhtddvnecuhfhrohhmpeflihhmucfohihhrhgsvghrghcuoehjihhmvghhghgvvghk sehgmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpeekkeekgfegledtfedvhfekke evffejfeeuudffkeetffdvieeuueejgffgvddtvdenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpehmvgdomhgvshhmthhprghuthhhphgvrhhsoh hnrghlihhthidquddujeehgeehvdefvddqvdeiieehfeehhedvqdhjihhmvghhghgvvghk peepghhmrghilhdrtghomhesjhhimhgvhhdrmhgv X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 5 Dec 2021 15:00:51 -0500 (EST) In-Reply-To: <874k7nw32n.fsf@gnus.jao.io> X-Mailer: Apple Mail (2.3693.20.0.1.32) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::d2a (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::d2a; envelope-from=jimehgeek@gmail.com; helo=mail-io1-xd2a.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:281019 Archived-At: Hi, first time I'm participating on the devel list here, but I wanted to = chime in with my experience using native compilation on macOS. > I'd be curious to know where people are seeing speedups. On macOS, native compilation is the single biggest improvement/feature = I've seen since I started using Emacs in 2011. Before native-comp, Emacs' performance was for the most part acceptable, = sluggish in some areas, and sometimes just plain horrible. Especially in = larger Ruby RSpec test files (over 400-500 lines), where each keystroke = could take somewhere around 100-1000ms to register. Native-comp solved = all of that for me, with everything being fast and responsive, even = those worst case scenario RSpec files. Basically, I simply cannot live without native compilation anymore, to = the point I've gone through the hassle to setup nightly builds via = GitHub Actions, so new builds are waiting for me when I wake up. As for if native compilation should be enabled by default, I'd say it = might be simpler/safer if it needs to be explicitly enabled. One reason = for it, is that on macOS "make install" with native-comp enabled does = not produce a Emacs.app bundle which can be distributed to other = machines without them first needing to install gcc, libgccgit, and = potentially other homebrew formulas. Bundling all external dependencies = including libgccjit/gcc into Emacs.app is a rather complicated process, = made even more complicated if you want to sign and notarize the app too. = I've got a quite a bit of code in my build script to handle it for my = own builds. --jimeh=