unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Andrew Whatson <whatson@gmail.com>
To: guile-devel@gnu.org
Subject: [DRAFT] Improve reporting of exception locations
Date: Wed, 12 Oct 2022 16:35:39 +1000	[thread overview]
Message-ID: <CAPE069f6e1n3+HTLfbNjy7P7FoqFZiG1n5s9QfMu+cFywjgMBQ@mail.gmail.com> (raw)

Hello guile-dev!

I'm working on a revised patch to improve the reporting of exception
locations, after last month's initial flawed attempt.

The new patch takes the more radical approach of capturing the stack
when an exception is created, including it as part of the compound
exception object.  This should ensure that we capture a correctly
trimmed stack, while avoiding the complexities of pre-unwind handlers.
This is similar to other dynamic languages where it's common to bundle
stack info with exception objects.

This approach will probably have a negative impact on code which is
sensitive to the performance of exception creation; capturing the
stack is more expensive than NOT capturing it.  Is this something that
we need to be concerned about?

I'm still working on integrating these changes into Guile, but thought
it's worth getting early feedback on this one.

Patch to follow!

Cheers,
Andrew



             reply	other threads:[~2022-10-12  6:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-12  6:35 Andrew Whatson [this message]
2022-10-12  6:42 ` [DRAFT] Improve reporting of exception locations Andrew Whatson
2022-10-12 19:16 ` Maxime Devos

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/guile/

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

  git send-email \
    --in-reply-to=CAPE069f6e1n3+HTLfbNjy7P7FoqFZiG1n5s9QfMu+cFywjgMBQ@mail.gmail.com \
    --to=whatson@gmail.com \
    --cc=guile-devel@gnu.org \
    /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.
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).