From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#68244: hash-table improvements Date: Wed, 14 Feb 2024 14:21:41 +0100 Message-ID: References: <170438379722.3921.9312235725296561206@vcs2.savannah.gnu.org> <19265EA5-E6F3-446C-AD9B-763693CF0A48@gmail.com> <6F3E332D-54ED-4E70-BBAA-A207750B52F8@gmail.com> <13877748-AFAB-4310-A0CA-104752C8BF2D@gmail.com> <5C9DFD74-B166-444E-BFDC-D022826098C8@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1762"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gerd =?UTF-8?Q?M=C3=B6llmann?= , Dmitry Gutov , Eli Zaretskii , 68244@debbugs.gnu.org, Stefan Kangas To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 14 14:24:06 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1raFF8-0000Ba-20 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Feb 2024 14:24:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raFEp-00049N-G3; Wed, 14 Feb 2024 08:23:47 -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 1raFEm-00049E-FF for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2024 08:23:44 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raFEm-00053b-78 for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2024 08:23:44 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1raFF4-0007rc-5m for bug-gnu-emacs@gnu.org; Wed, 14 Feb 2024 08:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Feb 2024 13:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68244 X-GNU-PR-Package: emacs Original-Received: via spool by 68244-submit@debbugs.gnu.org id=B68244.170791698930153 (code B ref 68244); Wed, 14 Feb 2024 13:24:02 +0000 Original-Received: (at 68244) by debbugs.gnu.org; 14 Feb 2024 13:23:09 +0000 Original-Received: from localhost ([127.0.0.1]:50770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raFED-0007qH-2T for submit@debbugs.gnu.org; Wed, 14 Feb 2024 08:23:09 -0500 Original-Received: from mail-lj1-f171.google.com ([209.85.208.171]:56619) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raFEB-0007pq-9f for 68244@debbugs.gnu.org; Wed, 14 Feb 2024 08:23:07 -0500 Original-Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2d0f1ec376bso42699441fa.1 for <68244@debbugs.gnu.org>; Wed, 14 Feb 2024 05:22:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707916903; x=1708521703; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=3F1M0hMswgf+9uGyo+ElFRruSWwz+S4vb7i4CwN99AI=; b=MEKjE4rQ8dRtZ4OwfJsWhD4Xx3154uWR8nMbG3G1IvGbJr9M2NxnFMCUcR0fKsYfUp gmwjazICw3mq5gWRs6AgLgUNVrXBMt6yjQbUM5vkE/GA4BqlRUGsNYPst+KaZ/8bjQee hp7M66xHeJd2dQcqGdEw+pE0X+JzVic3uGRD/dEYMDFxVtaZ63tlWTJypiOvr9wEZlDx wvm3D2Y6Q8e+GapW/8wrhZPQIxuHDDmoWhfPiFzcKN/TwtCRqR+vS6B2hFHCZHV+jDr5 fniD31GCJjQcrJ4oaWo3kPqjcLOePE35eom7Zq4xNMF6W6WgVWqx4GbCTZtVaBP8FyS6 lSkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707916903; x=1708521703; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=3F1M0hMswgf+9uGyo+ElFRruSWwz+S4vb7i4CwN99AI=; b=jere3pmJYTnVeKagSrQhFFZ1fa1+VnuZlf8LWHQrfr6PQIeBR9bYURn4r0ac+Tc7ha rNwuSQsa+VTPg0Pyy5JfC3dl8y/+AzdrVieCZO7ibPsTDSNr2P/5jdOrDxrF9jmqdRkI 6MFEbIqLgK1ffuyeBc0XPc5k5PZOujejDDKyZfnwz5G2E38hbK2l0iBkI7roAfta6qw0 4Xh8uvzSjbu5IzMBoSTJOQpBBiWfAmxgk5/hnSr0FjMbbibWJaXvYex9F1uN93xC6FV4 p2mwoyTozgEQRW8UPBZrUHofM5xj3/2yoOZpnEkryHVfSEQv5L8Kyv3y83WCOH5iD9uq szJg== X-Forwarded-Encrypted: i=1; AJvYcCV4eLo1sqzG/yigr+SWx/XTYBovUogIHipJLCiXrWrGQwf5nWburULbXJpYPk3rWw30aaYLOY6uvO5WvYbVR+Bt3TikwqE= X-Gm-Message-State: AOJu0Ywqve4Lw46UEyeOmQnvI3kkh7vsfm2pmpSp7s5f642jT7vWzFV/ rrqWwdS0a+WHcO87wMKFRFsHGm3cJyT3gzvJ8XR8GPZigy6X/Fop X-Google-Smtp-Source: AGHT+IFj3oqY8j3KdwmUj6De8WD27bJl3PtIO5QL9XcS3MLA9hvfrs7TpM1TD+YQtFXVjXkcbpZJrw== X-Received: by 2002:a19:f70a:0:b0:511:ab2a:f346 with SMTP id z10-20020a19f70a000000b00511ab2af346mr876819lfe.52.1707916902736; Wed, 14 Feb 2024 05:21:42 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXAqEmVcTWTvEhdSkW6FiXw1+XWEaV5czEye9w4WymBcmOw9Lbci89wnFLsLm48Arem3i/ljrkrDNPdx1w43xEYTVHLMJyS6NxqnQlOhARLVS7WrS0icITfvVCXcUngnyVH7PqAvIztx1VwNDClnoQEJFJ0jOunWuyaoxeAKQ== Original-Received: from smtpclient.apple (c80-217-1-132.bredband.tele2.se. [80.217.1.132]) by smtp.gmail.com with ESMTPSA id f3-20020ac25323000000b00511ad0609f9sm99987lfh.28.2024.02.14.05.21.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Feb 2024 05:21:42 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.15) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280004 Archived-At: 14 feb. 2024 kl. 14.05 skrev Stefan Monnier : > BTW, my idea adjusted for the kind of compatibility you're after would > have been to define `obarray-make` as (vector = (internal-make-real-obarray)) Yes, but since most primitives would need to accept a zero-filled vector = anyway (and replace the first element with an obarray object), = `obarray-make` might just as well just return [0]. Essentially: (intern X [0 ...]) -> (intern X [NEW-OBARRAY ...]) -> (intern X = NEW-OBARRAY) (intern-soft X [0 ...]) -> nil ;ie, treat as empty (intern-soft X [OBARRAY ...]) -> (intern-soft X OBARRAY)