From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#57957: 29.0.50; Native compilation hangs on cyclic lists Date: Thu, 22 Sep 2022 22:39:22 +0000 Message-ID: References: <53a58362fbe449bc81eaf45ab66dd28d@ifi.uio.no> <87pmfqawm4.fsf@gnus.org> <878rmb7j8k.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30957"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Gerd =?UTF-8?Q?M=C3=B6llmann?= , Lars Ingebrigtsen , Lars Tveito , 57957@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 23 00:40:15 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 1obUrf-0007tv-L1 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 23 Sep 2022 00:40:15 +0200 Original-Received: from localhost ([::1]:41870 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obUre-0001pd-P5 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Sep 2022 18:40:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obUrT-0001nc-Ho for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 18:40:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39677) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obUrT-0003JU-70 for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 18:40:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1obUrS-0003rL-M2 for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 18:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Sep 2022 22:40:02 +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.166388636914789 (code B ref 57957); Thu, 22 Sep 2022 22:40:02 +0000 Original-Received: (at 57957) by debbugs.gnu.org; 22 Sep 2022 22:39:29 +0000 Original-Received: from localhost ([127.0.0.1]:38755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obUqu-0003qT-SS for submit@debbugs.gnu.org; Thu, 22 Sep 2022 18:39:29 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:62404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obUqt-0003qH-CZ for 57957@debbugs.gnu.org; Thu, 22 Sep 2022 18:39:28 -0400 Original-Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 28MMdMXi013820 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Thu, 22 Sep 2022 22:39:22 GMT In-Reply-To: (Stefan Monnier's message of "Thu, 22 Sep 2022 13:10:09 -0400") 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:243444 Archived-At: Stefan Monnier writes: >> 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. I agree, Saturday I should have some time to look into this. Andrea