From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#57957: 29.0.50; Native compilation hangs on cyclic lists Date: Thu, 22 Sep 2022 13:10:09 -0400 Message-ID: References: <53a58362fbe449bc81eaf45ab66dd28d@ifi.uio.no> <87pmfqawm4.fsf@gnus.org> <878rmb7j8k.fsf@gnus.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38357"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , Lars Tveito , 57957@debbugs.gnu.org, Andrea Corallo To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 22 21:04:04 2022 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 1obRUR-0009oZ-Qm for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Sep 2022 21:04:03 +0200 Original-Received: from localhost ([::1]:48862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obRUQ-0005V3-NC for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Sep 2022 15:04:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obPj4-0006Lb-Ip for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 13:11:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39337) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obPj4-000453-9E for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 13:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1obPj3-00048y-UO for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 13:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Sep 2022 17:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57957 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 57957-submit@debbugs.gnu.org id=B57957.166386662215867 (code B ref 57957); Thu, 22 Sep 2022 17:11:01 +0000 Original-Received: (at 57957) by debbugs.gnu.org; 22 Sep 2022 17:10:22 +0000 Original-Received: from localhost ([127.0.0.1]:38415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obPiP-00047r-QH for submit@debbugs.gnu.org; Thu, 22 Sep 2022 13:10:22 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:64314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obPiL-00047R-R9 for 57957@debbugs.gnu.org; Thu, 22 Sep 2022 13:10:20 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id F219C100154; Thu, 22 Sep 2022 13:10:11 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 7C5C61000F8; Thu, 22 Sep 2022 13:10:10 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1663866610; bh=q5CSLYHr4CjxS6d6d3ih5RQSA4hB28zG1s5GH0QIqqc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=dGqzvQnxvg3WaojbA9uJutTAitQ9IsdWBcZBaHWnxsST+tjtIKFE9x5dWFIJVfuLP SL8mWuvFq2ibXib6AXoQTZf05I5KSH5SzvLCk9j8T5JdFW7TzUv5eSofC1nJIWKy1m lEz2xqFtBrLiYGSECopDWWJkuW0afYxvuEXycVdLMhZ9Cz+UJqcgTw6jFtvODeIRlH xDEpGKKMhD5eTGWfAGfdDsSRO3X+GDRu+ukbH2ydhMu05BfYqOFy8SvvxKzXpFChgZ UWwESEUF9WUCCzgh8r9AOA7wqq1SJrR8x54J2cIk7KM2/7GFDrywEn7eVD1OaLqc5L Rduk2qklmJ/yQ== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 62F43120839; Thu, 22 Sep 2022 13:10:10 -0400 (EDT) In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Thu, 22 Sep 2022 18:41:04 +0200") 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:243433 Archived-At: > The question is of course also how much effort circular lists deserve in > the compiler. From my point of view, not too much because they aren't > very useful, in code at least. And dealing with them costs runtime. Circular data structures are perfectly normal in source code under a `quote` but the code itself should never be cyclic (so I think it would be OK to signal an error (and/or to inf-loop) when asked to compile a chunk of code that has a cycle). So we *should* handle circular data structures correctly. Note: I don't know why we'd need/want to do a `subst-if` inside a `quote` and haven't looked at this bug or at the `comp.el` code to know what we're really talking about. Stefan