From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: MPS: weak hash tables Date: Wed, 03 Jul 2024 13:28:05 +0200 Message-ID: References: <86ed8cc4un.fsf@gnu.org> <86zfqzc3ky.fsf@gnu.org> <86plrvbydg.fsf@gnu.org> <_ThR9pdYMaIpZASWVEUqh-TuMSUydDM4v4g6QeKGUJE3ilY4tfRXHPiXAGG4RupeAl8BIJ8FFr2BUiWT9xUvB8W4uuEXypIz6GrGXYLPG88=@protonmail.com> <86msmzbqqg.fsf@gnu.org> <86ed8abty6.fsf@gnu.org> 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="21428"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: pipcet@protonmail.com, eller.helmut@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 03 13:29:13 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 1sOyAi-0005Gi-F4 for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Jul 2024 13:29:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOy9r-0008Bi-L1; Wed, 03 Jul 2024 07:28:19 -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 1sOy9n-00089Q-OV for emacs-devel@gnu.org; Wed, 03 Jul 2024 07:28:16 -0400 Original-Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sOy9l-0008D2-Bj; Wed, 03 Jul 2024 07:28:15 -0400 Original-Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-57d05e0017aso3451757a12.1; Wed, 03 Jul 2024 04:28:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720006090; x=1720610890; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bnO/qEVcfLfXRkKN4wzZgAbe9xwMjbrtIuPLDVOScck=; b=R3xdAKYXl7lYOx+L23f+P7VtvtFLGzz0OaiDTs/ta8CfQ4NEcJpETLIFt9O/vQLrzs MT9g4c210LgNUdbO/eGks2iYEirS6244CnaTfrzJUUYIpwuRCZif2JSztOrNyw8eQPzn tMnakFwubFOU+rBnNosO20qMBIBSeEkShuLDTr38JG8GUt1KBvchYURmEyVnX9aYhwfK 9eSiHih3ZbxmQy8bAXLDbj40JqIIXIL89oevTGIw1lxJ3VUqr0FTK3ZbLF4p8o7FvOV1 ADRhaefzaCmQjoQI92XVdk6fyAxqQfeybYH8kCyeQibHjbGnyFj54iGXujqtVCGa0ri6 weRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720006090; x=1720610890; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=bnO/qEVcfLfXRkKN4wzZgAbe9xwMjbrtIuPLDVOScck=; b=BzavkVUUERraS1DOBdXE6sxqBbsd/ENgeH+rzWW2CwVKXf5IUivtgD4AR1M5sZ4sVP zAE/uEtIF7KVKzQRfwmGwU9+lV2vC/ZhtSNJm4sSsh60nPIZuujbz3b8tXrPvGXvdOBL pAz8AN0c76uRiwdMKSeR8MW2UnII8jnEMLxHDgb4dTYT0cZCZRJIwn/ZUO0vZrZfjRxA uf7CzVNfvnh9R+jj9xCv4bODmzJZRXsN+1ie4cHitX3pmGxz+Must1ivKcTFvOfGYtw1 rMFsH/ShAlJ7IaAnqzvRyNKT3cg5yWNyrubBzpEqu+MT8F1AtdUXE7WHBm2P5OOaYflv 5ltg== X-Forwarded-Encrypted: i=1; AJvYcCXbO8ZRUjNTuIcocC9TnooJ40atNdq5VHEELXQ4f0UhdlnMApivUdYhuKhknTHM8A0I6syMvGWywT85N1Z8bslUxGd5 X-Gm-Message-State: AOJu0YyUWNRGeQuadAVrPC4gLTaFxiJ6jl21Z/4TXfbJZl5dbUhruO8G a6bll5DqI07GnQ7e7tWGUaqA1fKE9dSi3GjlpQAVvrI8BT9ldAVGNrbkBw== X-Google-Smtp-Source: AGHT+IHMf/D+I6udKjvtvORgh7HWu4BBhFHaUkSWY2Qm7fwq//2HeSyledxAj1g1Fp+siWC5K5Y4Fg== X-Received: by 2002:a17:906:6898:b0:a6f:2ee7:b21a with SMTP id a640c23a62f3a-a75144a7a7fmr697882266b.65.1720006090218; Wed, 03 Jul 2024 04:28:10 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e362dd.dip0.t-ipconnect.de. [217.227.98.221]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72ab08cea1sm499376766b.156.2024.07.03.04.28.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 04:28:08 -0700 (PDT) In-Reply-To: <86ed8abty6.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 03 Jul 2024 14:23:13 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x52c.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:321247 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Cc: Pip Cet , eller.helmut@gmail.com, >> emacs-devel@gnu.org >> Date: Wed, 03 Jul 2024 08:30:17 +0200 >>=20 >> >> 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? >>=20 >> Please read >>=20 >> https://memory-pool-system.readthedocs.io/en/latest/pool/awl.html# >>=20 >> 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? I've read that as "why can't we use the Lisp_Objects directly", sorry. We're loosing the Lisp_Type then, of course.