From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: Introducing 'safety' compilation parameter Date: Fri, 10 May 2024 04:19:28 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35979"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org, Eli Zaretskii , monnier@iro.umontreal.ca, mattias.engdegard@gmail.com, stefankangas@gmail.com To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 10 10:20:24 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s5LUO-0009A7-Ew for ged-emacs-devel@m.gmane-mx.org; Fri, 10 May 2024 10:20:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5LTX-0003P4-Sb; Fri, 10 May 2024 04:19:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5LTW-0003Oj-8V for emacs-devel@gnu.org; Fri, 10 May 2024 04:19:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5LTV-0001Sg-S9; Fri, 10 May 2024 04:19:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=VHAu95lhSJyJE8542rsYSv29HKYRWq/js3/Nq7DTz3k=; b=byoiTu+k3qORZTW29tIh eSlrvMppl7LfqE2xNYNwS5T01ohQVXAjdLnfYm+9vEZLyPNgjkEuzfBpIDnW7HrlAHtdF+IwXlhor J8epMs9gIODGloOQm/eNiMzT4rEgBWS1wD+NGetHPrcrQUUwPGxLDTvyDrsSoAnIL/iVGPBfx0JTg LmafYUTMzjb5zO6TYFiVt7lJgGXzXIZ4oLUthuNlba5qO+B/6zBTJBJGN+Ef/3oATm0CPj2Vo/L4u o+L0W7mmy8gflykiBHFQp+lHKYmg9JyX7JBSQdPdRKlQxaLjiWNBW1jHP0LA95W6aWpJoNBpW3fPY uvuWLo7Cr9a3Lg==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1s5LTU-0001Hs-IU; Fri, 10 May 2024 04:19:28 -0400 In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Fri, 10 May 2024 10:09:21 +0200") X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319120 Archived-At: Gerd M=C3=B6llmann writes: > Andrea Corallo writes: > >>> I don't know if something like this has been discussed before... CMUCL >>> and SBCL treat declarations differently depending on the speed settings. >>> If speed is below some threshold, declarations work like assertions, >>> with high speed settings declarations are treated as promises. >> >> I though looking at [1] only 'safety' was involved in declarations >> working like assertions. >> >> After your hint I see now SBCL does that when: >> >> (or (>=3Dsafety 2) (>=3D safety speed 1)) [2] >> >> That's complex/confusing =F0=9F=A4=AF! I think would be better to contr= ol that >> only with 'safety' no? > > You could read it as "either I the programmer value safety very much, or > I value safety, and I value safety at least as much as speed". Right, sounds much better in words actually! :) > Anyway, I just wanted to hint at the "declarations as > assertions/promises", and since you know about it, mission accomplished > :-). Thanks