From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: Optimising Elisp code [again] Date: Wed, 10 Oct 2018 12:18:17 -0400 Organization: A noiseless patient Spider Message-ID: References: <8hxojvzzzzzz.m4h.xxuns.g6.gal@portable.galex-713.eu> <20181006192457.GB7368@tuxteam.de> <86lg79yl54.fsf@zoho.com> <86o9c5rbm8.fsf@zoho.com> <86va6cplz1.fsf@zoho.com> <86y3b7my9r.fsf@zoho.com> <86k1mrmeqh.fsf@zoho.com> <86ftxfm98q.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 X-Trace: blaine.gmane.org 1539188308 29380 195.159.176.226 (10 Oct 2018 16:18:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 10 Oct 2018 16:18:28 +0000 (UTC) User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 10 18:18:24 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAHBn-0007Va-KO for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Oct 2018 18:18:23 +0200 Original-Received: from localhost ([::1]:58135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAHDu-0007M4-9I for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Oct 2018 12:20:34 -0400 X-Received: by 2002:adf:dc81:: with SMTP id r1-v6mr101691wrj.10.1539188301156; Wed, 10 Oct 2018 09:18:21 -0700 (PDT) Original-Path: usenet.stanford.edu!g78-v6no1200792wmd.0!news-out.google.com!m141-v6ni5494wmd.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!2.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-Injection-Info: barmar.motzarella.org; posting-host="494072e5dbd9fcd689e2d0ac1fba36dd"; logging-data="14633"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19pAxGkesS/IpMudRIhewv/" Cancel-Lock: sha1:0YGVYKDVenJY/3QKQoo2VuaBCOI= Original-Xref: usenet.stanford.edu gnu.emacs.help:224119 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118245 Archived-At: In article <86ftxfm98q.fsf@zoho.com>, Emanuel Berg wrote: > Garreau, Alexandre wrote: > > > Btw, what would it change to make emacs > > hosted by gcl > > I mean, compile the Lisp that isn't user > defined and unlikely to change - compile for > real, not byte-compile for > sped-up interpretation. > > I.e.: fun-and-play Elisp on the top > compiled Elisp in the middle > C downmost > > ? The Elisp interpreter is probably tightly intertwined with the Emacs editor code. Disentangling them so you can compile Elisp to machine code would be a big project, and probably not worth it. Byte-code interpretation is common in many modern languages, it makes it easier for the languages to be portable. Python and PHP both compile to byte code rather than machine code. It's generally fast enough for interactive applications. For computationally-intensive applications, there are often libraries that can be linked in, like Numpy for Python. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***