emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: On elisp running native - Update 12


From: Andrea Corallo
Subject: Re: On elisp running native - Update 12
Date: Sat, 26 Sep 2020 14:56:54 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

"T.V Raman" <raman@google.com> writes:

> Hi Andrea,

Hi!

> This looks awesome.
>
> A couple of questions:
>
> Now that you handle the optimization declarations from cl, could you
> also handle cl-declaim of the same  --- typically used in CL at
> top-level / start-of file?
>
>
> (cl-declaim (optimize (safety 0) (speed 3)))

ATM `cl-declaim' (as `cl-proclaim') are not effective regarding the
speed parameter of the native compiler.  To a quick look to the
HyperSpec I guess `cl-declaim' should just set `comp-speed' other than
what is already doing, shall do it.

> 2. In your example for advising primitives, you show the generate
>    dfunction as
>    (defun --subr-trampoline-delete-file (filename &optional trash)
>    (funcall filename trash))
>
>    Should the above check if delete-file was called interactively, and
>    if yes, in turn call funcall-interactively?

Interesting, I think should be fine like it is now as Lisp code is
calling explicitly `funcall-interactively' anyway.

  Andrea



reply via email to

[Prev in Thread] Current Thread [Next in Thread]