all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Richard Stallman <rms@gnu.org>
Cc: akrl@sdf.org, stefan@marxist.se, drew.adams@oracle.com,
	emacs-devel@gnu.org
Subject: Re: "Bringing GNU Emacs to Native Code" at the European Lisp Symposium
Date: Sat, 02 May 2020 09:43:46 -0400	[thread overview]
Message-ID: <jwvftcisbof.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1jUhmh-0005dp-8L@fencepost.gnu.org> (Richard Stallman's message of "Fri, 01 May 2020 22:21:43 -0400")

> None of that applies to a compiler.  Any compiler that transforms Emacs Lisp
> into something else must be able to deal with dynamic binding.

AFAIK it does *handle* such code (i.e. such code will run correctly), it
just doesn't optimize it (in this particular case it keeps it in `.elc` form).

> So there is no reason it should have trouble with dynamic binding
> mode, that only means it is not finished.

That's partly right.  But then again, there's always something else that
can be optimized.  You have to prioritize.  I think it's perfectly OK to
say that if you want higher performance you should start by adapting
your Elisp/d code to Elisp/l, especially since the compiler will be able
to do a much better job with Elisp/l than Elisp/d since when compiled
via libggcjit, a lexical variable will turn into (more or less) a plain
normal C variable whereas a dynamic variable will only be accessed via
the standard `symbol-value`, `set`, ... accessors.  For this reason, on
Elisp/d the native compiler won't be able to get much more speed up than
that resulting from removing the while+switch interpretive overhead,
whereas on Elisp/l it can go significantly further by allocating
variables to registers, removing type tests, boxing/unboxing pairs, ...


        Stefan




  reply	other threads:[~2020-05-02 13:43 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-28 17:11 "Bringing GNU Emacs to Native Code" at the European Lisp Symposium Stefan Kangas
2020-04-28 19:25 ` Andrea Corallo
2020-04-28 19:35   ` Amin Bandali
2020-04-28 20:06     ` Andrea Corallo
2020-04-28 21:13       ` Amin Bandali
2020-04-29  3:24   ` Richard Stallman
2020-04-29 18:47     ` Andrea Corallo
2020-04-28 19:36 ` tomas
2020-04-28 22:00 ` Drew Adams
2020-04-28 22:18   ` Stefan Monnier
2020-04-28 22:51     ` Drew Adams
2020-04-29  7:04     ` Eli Zaretskii
2020-04-29 12:38       ` Stefan Monnier
2020-04-29 14:02         ` Eli Zaretskii
2020-04-28 22:38   ` Dmitry Gutov
2020-04-29 10:55   ` Andrea Corallo
2020-04-29 15:35     ` Drew Adams
2020-04-29 18:57       ` Andrea Corallo
2020-04-29 19:29         ` Drew Adams
2020-04-30  1:14           ` Stefan Monnier
2020-04-30  2:27   ` Richard Stallman
2020-04-30  3:00     ` Stefan Monnier
2020-05-02  2:21       ` Richard Stallman
2020-05-02 13:43         ` Stefan Monnier [this message]
2020-04-30 20:32     ` Andrea Corallo
2020-05-02  2:27       ` Richard Stallman
2020-05-02  9:48         ` Andrea Corallo
2020-05-03  3:44           ` Richard Stallman
2020-05-03  4:28             ` Stefan Monnier
2020-05-04  3:09               ` Richard Stallman
2020-05-04  5:17                 ` Stefan Monnier
2020-05-05  2:56                   ` Richard Stallman
2020-05-05  3:18                     ` Stefan Monnier
2020-05-04 10:07             ` Andrea Corallo
2020-05-02 13:50         ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvftcisbof.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=akrl@sdf.org \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    --cc=stefan@marxist.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.