unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: guile-devel@gnu.org
Subject: Re: BDW-GC branch updated
Date: Sat, 05 Sep 2009 16:45:15 +0200	[thread overview]
Message-ID: <87ljkt4fic.fsf@gnu.org> (raw)
In-Reply-To: 87eiqmmy12.fsf@delenn.lan

Hi,

Andreas Rottmann <a.rottmann@gmx.at> writes:

> My main concern is/was that by moving to a conservatice GC, and
> _consequently changing the API of libguile to assume a conservative GC_
> (as outlined in [2]), you get third code relying on that as well. This
> would make it effectively impossible to ever switch back to a precise GC
> without potentially breaking all third-party code using the libguile
> API.

The current GC is "semi-conservative" in that it scans the C stack and
the "cell heap" for pointers, but nothing beyond that.  The current API
is built around this assumption.

BDW-GC is conservative: it scans everything, unless it's told otherwise
(e.g., `GC_malloc_atomic ()').  So you're right, the BDW-GC branch does
introduce API changes to take advantage of this, the most important of
which being that `scm_gc_malloc ()' memory is scanned and automatically
managed.

It's true that going back to the current "semi-precise" GC API would be
hard once we've made that change.

However, using a fully conservative GC makes it much easier to interact
with C, which is one of Guile's main goals as an extension language.

Furthermore, the concern about the risk of excess data retention caused
by conservative scanning holds as well for the current semi-conservative
GC.

Thus I believe the advantages of a conservative GC for Guile outweighs
its presumed disadvantages.

Thanks,
Ludo'.





  parent reply	other threads:[~2009-09-05 14:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-18 11:54 BDW-GC branch updated Ludovic Courtès
2009-08-18 12:19 ` Andreas Rottmann
2009-08-18 13:18   ` Ludovic Courtès
2009-09-04 17:15     ` Andreas Rottmann
2009-09-04 18:28       ` dsmich
2009-09-05 14:45       ` Ludovic Courtès [this message]
2009-09-10 20:09     ` Neil Jerram
2009-09-10 21:33       ` Ludovic Courtès
2009-09-16  1:11         ` Andreas Rottmann
2009-09-17 17:45           ` Neil Jerram
2009-09-05 17:22   ` Andy Wingo

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=87ljkt4fic.fsf@gnu.org \
    --to=ludo@gnu.org \
    --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).