[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: On elisp running native
From: |
Andrea Corallo |
Subject: |
Re: On elisp running native |
Date: |
Sun, 15 Mar 2020 20:10:00 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Spenser Truex <address@hidden> writes:
> Andrea Corallo <address@hidden> writes:
>
>> In case this is of interest I'd love to see it as feature branch to
>> better collect feedback and work on its evolution.
>
> I have a comment about `1.6 Compiler hints'
> http://akrl.sdf.org/gccemacs.html#org7d51b3b
>
> I think it is better to avoid using separate symbol for each hint, and instead
> use on that looks like a normal prefix notation.
>
> (comp-hint-cons x) --> (comp-hint cons x)
>
> This keeps the namespace cleaner. Also, consider the situation of specifying
> multiple types, which may be desired at some point:
>
> (comp-hint (cons fixnum...) x)
>
> which can't be done symbolically
>
> (comp-hint-cons-fixnum-...? x)
> (comp-hint-fixnum-cons...? x)
>
> All this compiler stuff is way over my head, so if my syntactic taste is
> overshadowed by a more important consideration I will not be surprised.
Hi Spenser,
two thoughts on this:
- `comp-hint-cons' and `comp-hint-fixnum' are imagined to be produced by
macro expansion and not meant to be used directly by the user.
- As of today the compiler is not that smart to take advantage of
something that can potentially more then one type and I don't know if
it will ever be, at least for the code generation side. Perhaps could
be useful for code analysis and diagnostic.
That said you are right this is not really flexible or general and I
think your suggestion is correct.
Thanks!
Andrea
--
address@hidden
- Re: On elisp running native, (continued)
- Re: On elisp running native, Zhu Zihao, 2020/03/09
- Re: On elisp running native, Andrea Corallo, 2020/03/09
- Re: On elisp running native, Eli Zaretskii, 2020/03/09
- Re: On elisp running native, Andrea Corallo, 2020/03/09
- Re: On elisp running native, Zhu Zihao, 2020/03/09
- Re: On elisp running native, Andrea Corallo, 2020/03/09
- Re: On elisp running native, Stefan Monnier, 2020/03/09
- Re: On elisp running native, Zhu Zihao, 2020/03/10
- Re: On elisp running native, Andrea Corallo, 2020/03/10
- Re: On elisp running native, Spenser Truex, 2020/03/15
- Re: On elisp running native,
Andrea Corallo <=