From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Basile Starynkevitch Newsgroups: gmane.emacs.help Subject: Re: Question on updating to 29.1 Date: Thu, 17 Aug 2023 20:58:11 +0200 Message-ID: References: <7434968f-40b1-ac55-c692-56a9b1c6a547@magnaspesmeretrix.org> <87350qj8fi.fsf@posteo.net> <844c26a7-d926-3b7d-db2e-2fb85cf01ca7@starynkevitch.net> <87bkfdubnd.fsf@dataswamp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22470"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 17 20:59:07 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1qWiD5-0005YF-NF for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 17 Aug 2023 20:59:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWiCR-0006Gn-4s; Thu, 17 Aug 2023 14:58:27 -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 1qWiCK-0006GR-LR for help-gnu-emacs@gnu.org; Thu, 17 Aug 2023 14:58:21 -0400 Original-Received: from relay6-d.mail.gandi.net ([2001:4b98:dc4:8::226]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWiCH-00059R-8l for help-gnu-emacs@gnu.org; Thu, 17 Aug 2023 14:58:20 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 491C2C0002 for ; Thu, 17 Aug 2023 18:58:11 +0000 (UTC) Content-Language: en-US In-Reply-To: X-GND-Sasl: basile@starynkevitch.net Received-SPF: pass client-ip=2001:4b98:dc4:8::226; envelope-from=basile@starynkevitch.net; helo=relay6-d.mail.gandi.net X-Spam_score_int: -65 X-Spam_score: -6.6 X-Spam_bar: ------ X-Spam_report: (-6.6 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-4.01, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144863 Archived-At: On 8/17/23 18:17, PierGianLuca wrote: > Hi everyone, > > I'm finally getting around to installing Emacs 29.1 (from the tarball, > on Ubuntu 20.04), and was looking at the options listed by Basile. I > have some questions or curiosities: > >> Basile Starynkevitch wrote: >> >>> './configure'  'CFLAGS=-O2 -g' 'CC=/usr/bin/gcc-13' >>> '--with-native-compilation' '--with-json' >>> '--enable-link-time-optimization' '--with-x-toolkit=gtk3' >>> '--program-suffix=-trunk' > > – I don't have gcc-13, so I'll skip that. > > – "--with-native-compilation" what does this do? I imagine it's > something not specifically related to Emacs. In recent GNU emacs (30) there is a possibility to compile the Elisp code to machine code, using libgccjit. And libgccjit is a "pseudo"' just in time compiler in recent GCC compiler. Documented in https://gcc.gnu.org/onlinedocs/jit/ and existing in GCC 12. (Those wanting a real just in time compiler should consider using the GNU lightning library, see https://www.gnu.org/software/lightning/ ; it is not GCC related, smaller, but generates slower machine code than libgccjit). > > – "--with-json" ditto?  I think it is related to understanding JSON. Using the jansson library see http://www.digip.org/jansson/ and https://github.com/akheron/jansson and https://www.json.org/json-en.html > > – "with-x-toolkit=gtk3" is this option already chosen by default? I > see that the Emacs install instructions say > > "If you use exclusively X, do not use the PGTK port.  There are a > number of respects in which the regular --with-x-toolkit=gtk build > works better" > > which sounds like "=gtk" is the default > > > Thank you for any info you can share, and for your patience with > someone inexperienced with these kinds of installations! > > Luca BTW, my pet open source project is the RefPerSys inference engine on https://github.com/RefPerSys/RefPerSys - contributors are welcome. See also some ideas from https://arxiv.org/pdf/1109.0779.pdf -- Basile Starynkevitch (only mine opinions / les opinions sont miennes uniquement) 92340 Bourg-la-Reine, France web page: starynkevitch.net/Basile/