unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Gerd Möllmann" <gerd.moellmann@gmail.com>
To: Andrea Corallo <akrl@sdf.org>
Cc: Lars Ingebrigtsen <larsi@gnus.org>,
	Lars Tveito <larstvei@ifi.uio.no>,
	57957@debbugs.gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>
Subject: bug#57957: 29.0.50; Native compilation hangs on cyclic lists
Date: Thu, 22 Sep 2022 18:41:04 +0200	[thread overview]
Message-ID: <m2y1ubgy5b.fsf@Mini.fritz.box> (raw)
In-Reply-To: <xjf1qs3bdfa.fsf@ma.sdf.org> (Andrea Corallo's message of "Thu, 22 Sep 2022 16:07:37 +0000")

Andrea Corallo <akrl@sdf.org> writes:

>>>>From Common Lisp I can say that these functions expect a "tree",
>> i.e. not a circular list.
>
> Okay I tried an adhoc substitute but this is not the only place in the
> compiler not robust against cyclic lists, so more work will be needed.

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.

Maybe some places could use cl-list-length?  That function deals with
circular lists and returns nil then.  We could then refuse to compile.





  reply	other threads:[~2022-09-22 16:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-20  7:55 bug#57957: 29.0.50; Native compilation hangs on cyclic lists Lars Tveito
2022-09-20 15:33 ` Lars Ingebrigtsen
2022-09-21 19:18   ` Andrea Corallo
2022-09-22 11:15     ` Lars Ingebrigtsen
2022-09-22 12:06       ` Gerd Möllmann
2022-09-22 16:07         ` Andrea Corallo
2022-09-22 16:41           ` Gerd Möllmann [this message]
2022-09-22 17:10             ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-22 22:39               ` Andrea Corallo
2024-03-24 11:26                 ` bug#57957: bug#69872: 29.2; Async native compilation of seq.el test uses up resources and hangs Andrea Corallo
2024-04-01 20:46                   ` Andrea Corallo
2022-09-25 10:02             ` bug#57957: 29.0.50; Native compilation hangs on cyclic lists Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-22 14:25       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2y1ubgy5b.fsf@Mini.fritz.box \
    --to=gerd.moellmann@gmail.com \
    --cc=57957@debbugs.gnu.org \
    --cc=akrl@sdf.org \
    --cc=larsi@gnus.org \
    --cc=larstvei@ifi.uio.no \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).