From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: MPS: weak hash tables Date: Wed, 03 Jul 2024 14:23:13 +0300 Message-ID: <86ed8abty6.fsf@gnu.org> References: <86ed8cc4un.fsf@gnu.org> <86zfqzc3ky.fsf@gnu.org> <86plrvbydg.fsf@gnu.org> <_ThR9pdYMaIpZASWVEUqh-TuMSUydDM4v4g6QeKGUJE3ilY4tfRXHPiXAGG4RupeAl8BIJ8FFr2BUiWT9xUvB8W4uuEXypIz6GrGXYLPG88=@protonmail.com> <86msmzbqqg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27691"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pipcet@protonmail.com, eller.helmut@gmail.com, emacs-devel@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 03 13:24:06 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 1sOy5m-0006tX-SH for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Jul 2024 13:24:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOy4z-0004jQ-2R; Wed, 03 Jul 2024 07:23:17 -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 1sOy4y-0004jG-3u for emacs-devel@gnu.org; Wed, 03 Jul 2024 07:23:16 -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 1sOy4x-00008f-QK; Wed, 03 Jul 2024 07:23:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=50ARUltxt8iXr3/GefyNtw6nRzdaswAUyu3bQIaPkrE=; b=Dn1PLai/00xX8hw13Gd0 6CqTo2q0ZmYRuHkzaHdiwM+NY3wMlakReol9xPDbRVNFncqNoLK8z4IrhZoGIHHC2Vu1Ag5CslTk9 0+dkIPAVXA2FN3i2agYXXfCtySXLFVj/XurmZEDfloobKVoPINrzO/0PvHINpDCoOdPtN3WD7Vn50 zn1kn6Js2e794+gau8XPuz4U847iSUsWFHS17ORhVTIYosIapz1aPmBWkET1n+ubwTLhUy5KxndxX ah9aq+unf9yKxetmi2n9bBO4MHAZ9aWDuqYNWStdUMiDOQ9GLPW5+TmNuA+dT0OMsFEnB7QIwdvl5 syBW341IiqZE5A==; In-Reply-To: (message from Gerd =?utf-8?Q?M=C3=B6llmann?= on Wed, 03 Jul 2024 08:30:17 +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:321246 Archived-At: > From: Gerd Möllmann > Cc: Pip Cet , eller.helmut@gmail.com, > emacs-devel@gnu.org > Date: Wed, 03 Jul 2024 08:30:17 +0200 > > >> They need to be aligned for MPS to understand they're pointers; > >> they're unaligned, except for symbols which aren't pointers in the > >> first place. In essence, MPS was focusing on the wrong language (for > >> us). > > > > The pointers we hide in Lisp objects are already aligned. Why cannot > > we use them directly? > > Please read > > https://memory-pool-system.readthedocs.io/en/latest/pool/awl.html# > > Chapter 7.3 Software emulation, and 7.4 Cautions. Which part of it says something different from what I proposed above? The text says: The bottom line is that references from an object in an AWL pool must be untagged and aligned, and integers must be tagged with a non-zero tag. Isn't that what I asked about above?