[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs rewrite in a maintainable language
From: |
Stephen J. Turnbull |
Subject: |
Re: Emacs rewrite in a maintainable language |
Date: |
Tue, 13 Oct 2015 15:49:41 +0900 |
Ken Raeburn writes:
> Do you think the introduction of lexical binding support changes
> the balance much?
FWIW, I was thinking that same thing but decided I am sufficiently
inexpert that I'd add more noise than signal. Now that Ken's posted,
I'll stick my neck out and propose an empirical definition of RELisp
(that's not "Lisp with two problems", that's "restricted Emacs Lisp").
Specifically, have a Lisp-to-C (or even gcl-to-Evers-to-Chance-to-C,
as somebody-whose-name-I-should-remember-mea-maxima-culpa suggested)
compiler that just barfs on any non-lexical reference (and on defvar).
Learning it would be really easy: Just learn Emacs Lisp and then by
trial and error learn how to placate the compiler. :-)
Of course, I suppose that lexical refs probably already use a different
bytecode and an optimized code path, so compiling pure lexical code to
C would buy only a small integer factor of speedup at best. But that
could be enough to make some mildly annoying delays fall within human
JND.
And the idea could easily be weakened to a bytecompiler mode that
refuses to emit dynamic refs, to teach people to avoid dynrefs on pain
of a cranky compiler. ;-)
Steve
- Re: Emacs rewrite in a maintainable language, (continued)
- Re: Emacs rewrite in a maintainable language, Camm Maguire, 2015/10/15
- Re: Emacs rewrite in a maintainable language, Alexis, 2015/10/12
- Re: Emacs rewrite in a maintainable language, Daniel Colascione, 2015/10/12
- Re: Emacs rewrite in a maintainable language, Ken Raeburn, 2015/10/13
- Re: Emacs rewrite in a maintainable language, John Wiegley, 2015/10/13
- Re: Emacs rewrite in a maintainable language, David Kastrup, 2015/10/15
- Re: Emacs rewrite in a maintainable language, Daniel Colascione, 2015/10/13
- Re: Emacs rewrite in a maintainable language,
Stephen J. Turnbull <=
- Re: Emacs rewrite in a maintainable language, Oleh Krehel, 2015/10/15
- Re: Emacs rewrite in a maintainable language, David Kastrup, 2015/10/12
- Re: Emacs rewrite in a maintainable language, Paul Eggert, 2015/10/15
- Re: Emacs rewrite in a maintainable language, Oleh Krehel, 2015/10/15
- Re: Emacs rewrite in a maintainable language, Eli Zaretskii, 2015/10/12
- Re: Emacs rewrite in a maintainable language, David Kastrup, 2015/10/15
- Re: Emacs rewrite in a maintainable language, Stephen J. Turnbull, 2015/10/15
- Re: Emacs rewrite in a maintainable language, Marcus Harnisch, 2015/10/13
- Re: Emacs rewrite in a maintainable language, Richard Stallman, 2015/10/13
- Re: Emacs rewrite in a maintainable language, Daniel Colascione, 2015/10/13