From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: Merging scratch/no-purespace to remove unexec and purespace Date: Fri, 20 Dec 2024 20:38:24 +0000 Message-ID: <871py2jdk9.fsf@protonmail.com> References: <875xng9g48.fsf@protonmail.com> <87ttaz98q1.fsf@protonmail.com> <87y10b77p7.fsf@protonmail.com> <87msgqjpf2.fsf@protonmail.com> Reply-To: Pip Cet 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="10881"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Pip Cet via \"Emacs development discussions.\"" , Stefan Monnier , Stefan Kangas , Andrea Corallo , Eli Zaretskii To: =?utf-8?Q?Gerd_M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 21 07:17:04 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 1tOsnP-0002fA-Kk for ged-emacs-devel@m.gmane-mx.org; Sat, 21 Dec 2024 07:17:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOsmg-0005mc-QK; Sat, 21 Dec 2024 01:16:19 -0500 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 1tOjlb-0006o4-D5 for emacs-devel@gnu.org; Fri, 20 Dec 2024 15:38:35 -0500 Original-Received: from mail-10628.protonmail.ch ([79.135.106.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tOjlY-0002N0-Rz for emacs-devel@gnu.org; Fri, 20 Dec 2024 15:38:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1734727109; x=1734986309; bh=d87Bu6yhN+KpWhTvANNFccikmoEBVjNgBSJlf453NkY=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=Oz8Yigyxnc/GSrNu7n1VNSNXlZ6/hH5Y01aCqzgcs+MH/aFOxlr87OqGXJ7BMMP/V +owvi8lSqSxYum5Ln7oCYLkSy+dXDTcQQuKqmiX/r0Cu7gzvn6b7CuPsT6bMa3CMa+ aHsXf5GLMF0XPuGxaAFC4JWMlmes6pZUwNQ/L9awleGBZSTjXNf+ZNdwdeOEdRBtI6 OmUblDjiQW+URakJnDLmUo9XuqphW0dBdvX3jKrQJzpUM3GbrV25yUptxzxdWunQov S/Yc91hpasdBuiPWIdTb2Igx+nKMN/bLyFeEOrvUA2Mzmbl/lJIF0anPY8yN1Jv5CS IIhY0MCk28Oqw== In-Reply-To: Feedback-ID: 112775352:user:proton X-Pm-Message-ID: c629db29261b5c834c93e3dce49e23ba10d45c0d Received-SPF: pass client-ip=79.135.106.28; envelope-from=pipcet@protonmail.com; helo=mail-10628.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 21 Dec 2024 01:16:15 -0500 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:326811 Archived-At: Gerd M=C3=B6llmann writes: > Pip Cet via "Emacs development discussions." > writes: > >> "Stefan Monnier" writes: >> >>>>> OTOH and IMHO, it would be preferable if that symbol could not crash >>>>> Emacs. Can we come up with a good way to fix that, while preserving = the >>>>> check that Andrea wants to keep? >>>> >>>> That sounds like a good thing to focus on, yes. We need to have a val= ue >>>> in a vector that we Fread that is distinguishable from all other value= s. >>> >>> How 'bout an uninterned symbol `#:foo`? >> >> I think those are legal for native-compiled subrs to use (there's a >> comment about it, at least), so that wouldn't do us any good, would it? >> >> Pip > > Uninterned symbols are unique, i.e. (eq '#:a '#:a) =3D> nil. > Wouldn't that help? I don't see how, sorry. Nativecomp produces a string in the .eln file that is passed to make_string(), then to Fread(). The string can include source code for uninterned symbols, but there's no way for us to tell whether a #:lambda-fixup in there was put in by us or by the user. What we could do is expand read so this: (let* ((cookie (cons nil nil)) (read-table (list (cons "cookie" cookie))) (result (read "#s(cookie cookie)"))) (eq result cookie)) to return t. Then we'd have an expressive syntax for this kind of thing (obviously, "cookie" should be something useful in the #s(...) syntax. A slightly different option is to do this: (let* ((cookie (cons nil nil)) (read-circle (list (cons 1 cookie))) (result (read "#1#"))) (eq result cookie)) in effect allowing us to use prime the read-circle table with externally-provided objects. Pip