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: Merging scratch/no-purespace to remove unexec and purespace Date: Fri, 20 Dec 2024 15:35:31 -0500 Message-ID: References: <87frml9cy4.fsf@protonmail.com> <875xng9g48.fsf@protonmail.com> <87ttaz98q1.fsf@protonmail.com> <87y10b77p7.fsf@protonmail.com> <87msgqjpf2.fsf@protonmail.com> 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="22346"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Pip Cet via "Emacs development discussions." , Stefan Monnier , Pip Cet , Stefan Kangas , Eli Zaretskii To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 20 21:36:30 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 1tOjja-0005du-09 for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Dec 2024 21:36:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOjij-0005j0-UP; Fri, 20 Dec 2024 15:35:38 -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 1tOjif-0005ie-B2 for emacs-devel@gnu.org; Fri, 20 Dec 2024 15:35:33 -0500 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 1tOjid-0001LY-TW; Fri, 20 Dec 2024 15:35:31 -0500 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=z/GKP97szKnj300osZmR0GYLluACeyyPlRKRxAJhly8=; b=exnvvKeRWqAt5xbMwMx3 jR68MyqifA9uCbjtUC5SeUC3Bjj+x6oEltKPKH9OvoPctQi7Fw0BkurNqGxjQBh/iFSqnidfAaEf2 1DTwRXCMS7w6hdyuy7fioKynCwTNmUBnHzuRB7RYnh4uLPD5SskEZRhnoCwQdw77xr/9pgpyZJJ6N UAHK/Mcd0E5BG/DQ4enAHbUKbqEmiJRdrSYQDZCT4P34LPId9j1sWdKWC2v7mrAAXk321/52fMpXZ ejLbavitbenjm9yfDA3tehlTC/XFeg/g9p/HhGolGyHd3T4zOei21iJw6i+XDR8nUC9VeHkNwTsuo ++GO5FzKJOTU7w==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1tOjid-0000DF-KK; Fri, 20 Dec 2024 15:35:31 -0500 In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llmann=22'?= =?utf-8?Q?s?= message of "Fri, 20 Dec 2024 18:25:40 +0100") 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:326807 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? Yes. we want and still can use eq in the test, I guess the best is to create and store an uninterned symbol somewhere, so we can use it to mark and test those locations in the relocation vector.