From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.bugs Subject: bug#46834: 28.0.50; byte-compiling the standard counter closure fails Date: Mon, 1 Mar 2021 16:41:58 +0000 Message-ID: References: <8735xf8154.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11823"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46834@debbugs.gnu.org, Lars Ingebrigtsen To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 01 17:44:10 2021 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 1lGleT-0002yj-JW for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Mar 2021 17:44:09 +0100 Original-Received: from localhost ([::1]:36948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGleS-0001nL-Ki for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Mar 2021 11:44:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGldO-0001kx-Eb for bug-gnu-emacs@gnu.org; Mon, 01 Mar 2021 11:43:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39060) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lGldO-0005W0-5y for bug-gnu-emacs@gnu.org; Mon, 01 Mar 2021 11:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lGldO-0006pu-4Y for bug-gnu-emacs@gnu.org; Mon, 01 Mar 2021 11:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Mar 2021 16:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46834 X-GNU-PR-Package: emacs Original-Received: via spool by 46834-submit@debbugs.gnu.org id=B46834.161461696426256 (code B ref 46834); Mon, 01 Mar 2021 16:43:02 +0000 Original-Received: (at 46834) by debbugs.gnu.org; 1 Mar 2021 16:42:44 +0000 Original-Received: from localhost ([127.0.0.1]:50606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGld5-0006pQ-Io for submit@debbugs.gnu.org; Mon, 01 Mar 2021 11:42:44 -0500 Original-Received: from mail-ot1-f46.google.com ([209.85.210.46]:36531) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGld3-0006pB-62 for 46834@debbugs.gnu.org; Mon, 01 Mar 2021 11:42:41 -0500 Original-Received: by mail-ot1-f46.google.com with SMTP id 105so17090900otd.3 for <46834@debbugs.gnu.org>; Mon, 01 Mar 2021 08:42:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=epthzOVROiuewMUK1EiFm1zp7nEi1hAg3jH6na/cCd0=; b=iTZgjpQDit4PPq0u1GEnFAoejt0soFGZVn2FeKkxGSkrmpvUFUfJH9tg3qTl20ztDl Me6orb6CDLnvOAX5DjI1XSs3lTtN5b/GeSzLcCsekC3s0zNuKIJ7IeJ51JFI7UG+O/AB 2BxL8F7CE9lVYBGwr2y6R+3XUdnuQSYY3BcLCalLyKwM15VUsVaOJBTTwhUEmywmWjRo qYZtvy1qz+GiFBFuzuaokGc6mLT5O5pR9dd78KXYcq3p8Le2fA/iC4toPyI4xPYhLzKl xrlRU8o8PnfGVyyKbiY92eE4BszR36fpXdB2KEDQX8r0gWRKHRG928UATUQv3j4e8/w+ 5zmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=epthzOVROiuewMUK1EiFm1zp7nEi1hAg3jH6na/cCd0=; b=uZoJhfbYR0cKSFwbA0nf55NjTLuaSrH7HlsQrejLnicysBPObo53XOOmgnLyTXu+EA h1DFdF7u+rxKn0zBx31zJh8dUOFLnJjR/s2TmMNsdup7a8AAhYFlIcFjp8gUfbCEA+ty emjmJtFQhvSYACIi/v/IKQajCl/3yCJkzt16HzghzIqFu3J1foeBQS/TsbV76EF/SrzS JlcHkl3rO8jJgD2ZpgkhMUQlMawGwAXryjK8V9wHCPtffwtOgEsm29Swq4k5pVY5o+Aj WN8OEHdwORlUEQPKE9HrHx+S/JZikcM3BBttabO4yeF+hjrM/tkmqXGXhF2ve41nPctr vQHg== X-Gm-Message-State: AOAM532bI3sj/qK0TN1YpokjOjU9GJL32FHzGTnRcoVit0ymzS8hbqhq 3BaB5VXm7stjGuU+RkpCBrI151npfnxfnI4wwUc= X-Google-Smtp-Source: ABdhPJyAClSUB8dSflGDaeO5gwWZ8oyHyfwNC+watHrWoRMKP8WVIJDk63gQA1X4OMKbEiPZJB47k1UeNxS1yteekes= X-Received: by 2002:a05:6830:1682:: with SMTP id k2mr14368050otr.154.1614616955216; Mon, 01 Mar 2021 08:42:35 -0800 (PST) In-Reply-To: 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" Xref: news.gmane.io gmane.emacs.bugs:201125 Archived-At: On Mon, Mar 1, 2021 at 4:15 PM Stefan Monnier wrote: > > That said, the comment in byte-compile--reify-function is incorrect: > > [ I don't see which comment you're referring to. ] The docstring, sorry. It says the return value evaluates to FUN, which is incorrect (but, IMHO at least, this behavior is desirable and consistent, at least, with the way byte-compile changes string identities). > > since closures use alists and "let" uses proper lists, we can't share > > structure between them, so the return value will be equivalent to a > > snapshot of FUN, not "equal" to FUN itself. OTOH, even changing that > > wouldn't help as byte-compiled closures use a third format to store > > the bindings, IIUC. > > I think we could make the shared state work if we turned > > (closure ((VAR . VAL) ...) ...) > > into something like > > (cl-symbol-macrolet ((VAR (cdr ',CONSCELL)) ...) ...) > > I find the idea pretty repulsive, tho. I agree, it is repulsive. I wasn't going to mention it for that reason :-) (Also for the reason that I wasn't sure whether anything would break out of the cl-symbol-macrolet jail (no luck so far...)) Pip