From: Andrea Corallo <acorallo@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org, Eli Zaretskii <eliz@gnu.org>,
mattias.engdegard@gmail.com, stefankangas@gmail.com
Subject: Re: Introducing 'safety' compilation parameter
Date: Fri, 10 May 2024 13:58:38 -0400 [thread overview]
Message-ID: <yp1ikzlv99t.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <yp1ttj9y4zz.fsf@fencepost.gnu.org> (Andrea Corallo's message of "Tue, 07 May 2024 12:13:36 -0400")
Andrea Corallo <acorallo@gnu.org> writes:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>>> I didn't want to give safety a prefix (byte- or comp-) as I believe we
>>> should extend safety in the future with a value to have the byte
>>> compiler generates runtime type checks to verify the declred types.
>>
>> I don't see a strong need for a namespace prefix, but I think "safety"
>> is too general a term. It could be understood to apply also to
>> unrelated circumstances such as process confinement or disclosure of
>> sensitive info over a network connection.
>> Maybe `elisp-safety` or `compilation-safety`?
>
> Agree, boths SGTM, maaaybe I slightly prefer 'compilation-safety'.
>
>> If I read your patch correctly, we get safety in a roundabout way:
>> rather than test the safety setting at the spot where we decide to apply
>> (or not) a dangerous optimization, we use the safety setting to
>> "mollify" the type annotations (presumably because this will in turn
>> make the risky optimizations inapplicable).
>>
>> What is the reason for that?
>
> No specific reason, I think I thought was safer to write the patch with
> way gating optimization at this (higher) level. Thinking about now that
> you raised the point, is probably easy to gate the single optimizations
> as well. Why not, I think I'll update the patch this way.
Okay I pushed scratch/comp-safety2 changing the knob name to
'compilation-safety' and gating the dangerous optimizations as
discussed.
Thanks
Andrea
next prev parent reply other threads:[~2024-05-10 17:58 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-07 10:37 Introducing 'safety' compilation parameter Andrea Corallo
2024-05-07 12:01 ` Alan Mackenzie
2024-05-07 13:15 ` Eli Zaretskii
2024-05-07 16:07 ` Drifting towards a statically typed Emacs Lisp. [Was: Introducing 'safety' compilation parameter] Alan Mackenzie
2024-05-07 17:06 ` Andrea Corallo
2024-05-07 23:37 ` Emanuel Berg
2024-05-07 18:00 ` Eli Zaretskii
2024-05-08 0:14 ` Emanuel Berg
2024-05-07 23:29 ` Emanuel Berg
2024-05-09 23:52 ` Richard Stallman
2024-05-10 6:31 ` Eli Zaretskii
2024-05-07 16:37 ` Introducing 'safety' compilation parameter Tomas Hlavaty
2024-05-07 16:54 ` Andrea Corallo
2024-05-07 23:42 ` Emanuel Berg
2024-05-07 14:56 ` Stefan Monnier
2024-05-07 16:13 ` Andrea Corallo
2024-05-10 17:58 ` Andrea Corallo [this message]
2024-05-13 2:29 ` Stefan Monnier
2024-05-13 18:59 ` Eli Zaretskii
2024-05-13 21:12 ` Andrea Corallo
2024-05-14 6:11 ` Eli Zaretskii
2024-05-09 8:40 ` Eli Zaretskii
2024-05-10 7:47 ` Andrea Corallo
2024-05-10 10:17 ` Eli Zaretskii
2024-05-10 11:42 ` Andrea Corallo
2024-05-10 15:10 ` Eli Zaretskii
2024-05-10 18:02 ` Andrea Corallo
2024-05-10 18:05 ` Andrea Corallo
2024-05-09 9:19 ` Gerd Möllmann
2024-05-10 7:58 ` Andrea Corallo
2024-05-10 8:09 ` Gerd Möllmann
2024-05-10 8:19 ` Andrea Corallo
2024-05-10 14:00 ` 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=yp1ikzlv99t.fsf@fencepost.gnu.org \
--to=acorallo@gnu.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=mattias.engdegard@gmail.com \
--cc=monnier@iro.umontreal.ca \
--cc=stefankangas@gmail.com \
/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.