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#65017: 29.1; Byte compiler interaction with cl-lib function objects, removes symbol-function Date: Fri, 4 Aug 2023 15:41:17 +0200 Message-ID: <3CB03B6B-8C4F-4A4C-A4C4-A9BECF5EFCEF@gmail.com> References: <8B08E514-B2D5-48F5-BA90-4F5A9492F8F9@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="32662"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65017@debbugs.gnu.org, Stefan Monnier , Eric Marsden To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 04 15:42:20 2023 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 1qRv4O-0008G7-BV for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Aug 2023 15:42:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qRv47-0003m2-Vk; Fri, 04 Aug 2023 09:42:04 -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 1qRv47-0003lV-5c for bug-gnu-emacs@gnu.org; Fri, 04 Aug 2023 09:42:03 -0400 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 1qRv46-0002bb-Tv for bug-gnu-emacs@gnu.org; Fri, 04 Aug 2023 09:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qRv46-0007ce-EY for bug-gnu-emacs@gnu.org; Fri, 04 Aug 2023 09:42:02 -0400 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: Fri, 04 Aug 2023 13:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65017 X-GNU-PR-Package: emacs Original-Received: via spool by 65017-submit@debbugs.gnu.org id=B65017.169115648929251 (code B ref 65017); Fri, 04 Aug 2023 13:42:02 +0000 Original-Received: (at 65017) by debbugs.gnu.org; 4 Aug 2023 13:41:29 +0000 Original-Received: from localhost ([127.0.0.1]:53601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRv3Z-0007bj-05 for submit@debbugs.gnu.org; Fri, 04 Aug 2023 09:41:29 -0400 Original-Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]:54423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRv3W-0007bT-AZ for 65017@debbugs.gnu.org; Fri, 04 Aug 2023 09:41:27 -0400 Original-Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-4fe11652b64so3505061e87.0 for <65017@debbugs.gnu.org>; Fri, 04 Aug 2023 06:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691156480; x=1691761280; 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=GJjOMnH80zw8m+vCVejWkkwx2qItIbaAbA7HrYBo8ic=; b=YQ1v00CLJxww7A/MHpfFkH9u6c5qDb/2qGkZbV+aVytcy7GEbZsy/9HwSPE5R60qfq gomSU8mcME56zYWEiONDwl/aiZi1mYGjxPXVJjjgV8hFOY2plIH+HYLl2o/hBhFeTZw2 p5Xkc73NUMSJOPqE6IxegSxxZ21zColjYUV/cXF4+ZNF2+UpLs3/LGrFW7Ng552vyezd W2YmjOzCJcl2BiqGJPQ1Wjxdj4G6I4Putu2fv8OFm1raSL4jcW5QkvEsV4AbGwT2+jDc CJ4ADB+8cEljA2EUi61kslMjPjgRvgbWzD4T7icPOauOTLsGzWBSHvFWsjwReVMXr6pk X1vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691156480; x=1691761280; 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=GJjOMnH80zw8m+vCVejWkkwx2qItIbaAbA7HrYBo8ic=; b=d4wglLwAS2rVbwkdYqdbGURyZEaMVPnCRWj1L9yx5ITggU2oefFWaZR0kbzIW/R2jV q0NnKFxQvPxZjqbuDsWDx0jqpIRKjToPThxxGfaI9sZU8BYWK3knEA9NU35UR8iUktNu t/HTDXVtIvEPcIXrk/gyrq8ACaAVqpi5DMgu/Pojvrm3H9KsD3b5AKGW29Fm8lPJUs77 20sUTjzxnjJm8kPOBZ3PJ3tTnza7fk9H0x9rCRY4XXA3rG+htnzVccm4akbLmYOhMM7B MRUaO/Of/oaeGhFNhgjtucPyHehQomo9hnxOiw5VVHwPGxvAiu1bVdHUGFrIbPxHedD1 p+wQ== X-Gm-Message-State: AOJu0YxkD6GteJygAmxMP4iJI123wZoX/Qw50haq9T/A3VKF4E4QEECK zXFGNCcGkqSN0UMKsk+uDUI= X-Google-Smtp-Source: AGHT+IHbEjZSU0ZJ8UP9SI5S4eqebscjUws8s7g1zcq/n30bKeDBA9JpJS1+uaqJOCiaFQLc+Zohgw== X-Received: by 2002:a05:6512:b9c:b0:4fb:820a:f87f with SMTP id b28-20020a0565120b9c00b004fb820af87fmr1848582lfv.10.1691156479457; Fri, 04 Aug 2023 06:41:19 -0700 (PDT) Original-Received: from smtpclient.apple (c188-150-165-235.bredband.tele2.se. [188.150.165.235]) by smtp.gmail.com with ESMTPSA id y18-20020a197512000000b004fb73bea65esm381063lfe.25.2023.08.04.06.41.18 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Aug 2023 06:41:18 -0700 (PDT) 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:266672 Archived-At: 4 aug. 2023 kl. 13.11 skrev Alan Mackenzie : > Using a hash table, or something similar? This is all very well, but = the > garbage collecter, for every collected object, would have to check > whether that object is in that table, and if so remove it. This would > slow down garbage collection, possibly by a lot. The table could have weak keys, and there are known GC algorithms for = dealing with those. It doesn't actually need to be a hash table at all -- we only need to = optimise for fast insertion and small size, not lookup (for displaying = compiler diagnostics, for example). This is a very half-baked idea; I haven't thought it through at all. For = example, we may need a way to transfer location from one sexp to a newly = built one, and that may complicate the inner workings of the compiler = (or not). It's clear that symbols-with-pos is a neat hack that is surprisingly = effective, with almost no changes to Lisp code needed at all. It = definitely has improved diagnostics. Unfortunately it makes everything a = bit slower, not just the compiler, but symbols-with-pos will serve until = we come up with something better.