unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: How does nativecomp compile circular lists?
Date: Wed, 28 Jul 2021 03:18:48 +0100	[thread overview]
Message-ID: <CAKDRQS5PCd+fGY-fSdceOaz+jqzKH33KFMwtzONNy45CRdkYUA@mail.gmail.com> (raw)
In-Reply-To: <875ywvdyrs.fsf@web.de>

[-- Attachment #1: Type: text/plain, Size: 868 bytes --]

That appears to be the case in elisp bytecode. What I'm trying to compare
is how the GCC JIT deals with it. This simple test case I've taken out of
powerline doesn't seem to produce different results between elisp and
nativecomp tho, so the problem may have to do with how circular lists
interact with something else, and how the JIT chooses to optimize it. I'm
just trying to chase down these recurring issues that seem to emanate from
circular lists.

Jimmy


On Wed, Jul 28, 2021 at 2:15 AM Michael Heerdegen <michael_heerdegen@web.de>
wrote:

> Jimmy Yuen Ho Wong <wyuenho@gmail.com> writes:
>
> > (defun test-circular-list ()
> >   (let ((l (list 1 2 3)))
> >     (setcdr (last l) l)
> >     l))
>
> Does compiling that involve circular lists?  The compiler doesn't call
> the function, and there is no circular structure in that code...right?
>
> Michael.
>
>
>

[-- Attachment #2: Type: text/html, Size: 1434 bytes --]

      reply	other threads:[~2021-07-28  2:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-27  7:21 How does nativecomp compile circular lists? Jimmy Yuen Ho Wong
2021-07-27  9:28 ` Andrea Corallo via Emacs development discussions.
2021-07-28  2:09   ` Jimmy Yuen Ho Wong
     [not found]     ` <6247f78b-282f-27e7-e0cf-6bc3b1cdee26@gmail.com>
2021-07-28  7:20       ` Andrea Corallo via Emacs development discussions.
2021-07-28 13:49         ` Jimmy Yuen Ho Wong
2021-07-28 15:11           ` Andrea Corallo via Emacs development discussions.
2021-07-29 10:43             ` Jimmy Yuen Ho Wong
2021-07-30  8:20               ` Andrea Corallo via Emacs development discussions.
2021-08-03  7:23                 ` Jimmy Yuen Ho Wong
2021-08-03  8:28                   ` Andrea Corallo via Emacs development discussions.
2021-07-28  1:15 ` Michael Heerdegen
2021-07-28  2:18   ` Jimmy Yuen Ho Wong [this message]

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=CAKDRQS5PCd+fGY-fSdceOaz+jqzKH33KFMwtzONNy45CRdkYUA@mail.gmail.com \
    --to=wyuenho@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=michael_heerdegen@web.de \
    /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).