From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: scheme closures: crash during garbage collection Date: Mon, 12 Jun 2006 23:34:42 +0100 Message-ID: <87odwyt33x.fsf@ossau.uklinux.net> References: <64e2f6fe0606081528m4e5f9979yff9b8294ecedf6d2@mail.gmail.com> <87odx2ds0o.fsf@ossau.uklinux.net> <87mzclmjq8.fsf@zagadka.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1150151783 28365 80.91.229.2 (12 Jun 2006 22:36:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Jun 2006 22:36:23 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Jun 13 00:36:19 2006 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fpuzx-0004xl-Ks for guile-devel@m.gmane.org; Tue, 13 Jun 2006 00:35:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fpuzx-0002WU-6K for guile-devel@m.gmane.org; Mon, 12 Jun 2006 18:35:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fpuzt-0002Ui-4b for guile-devel@gnu.org; Mon, 12 Jun 2006 18:35:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fpuzr-0002To-Ep for guile-devel@gnu.org; Mon, 12 Jun 2006 18:35:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fpuzr-0002Tl-7r for guile-devel@gnu.org; Mon, 12 Jun 2006 18:34:59 -0400 Original-Received: from [80.84.72.33] (helo=mail3.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fpv8f-00048i-JV for guile-devel@gnu.org; Mon, 12 Jun 2006 18:44:05 -0400 Original-Received: from laruns (host81-129-157-146.range81-129.btcentralplus.com [81.129.157.146]) by mail3.uklinux.net (Postfix) with ESMTP id 57C3A409FD9; Mon, 12 Jun 2006 22:34:58 +0000 (UTC) Original-Received: from laruns (laruns [127.0.0.1]) by laruns (Postfix) with ESMTP id 144666FDDB; Mon, 12 Jun 2006 23:34:43 +0100 (BST) Original-To: Marius Vollmer In-Reply-To: <87mzclmjq8.fsf@zagadka.de> (Marius Vollmer's message of "Sat, 10 Jun 2006 12:40:47 +0300") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:5976 Archived-At: Marius Vollmer writes: > hanwen@byrd.xs4all.nl (Han-Wen Nienhuys) writes: > >> No, MV thinks it's a bad idea, and I agree with him. >> >> See >> >> http://thread.gmane.org/gmane.lisp.guile.devel/4117/focus=4160 > > Yep, and let me elaborate a bit: > > The pair scm_gc_protect_object / scm_gc_unprotect_object can be seen > as being Guile's way to implement reference counting for its objects, > maybe analogous to g_object_ref and g_object_unref for glib's > GObjects. This is true, of course: you can use it to implement > reference counting. However, it is not a good idea, as Guile offers a > better alternative with its mostly-precise mark/sweep garbage > collector. So what do you propose, then, for the scenario that Gregory described? > Guile wants you to integrate your objects with its mark/sweep > approach, by providing appropriate smob marking functions, for > example. If I've understood correctly, this isn't possible in Gregory's scenario. (See http://lists.gnu.org/archive/html/guile-gtk-general/2006-06/msg00013.html if you didn't see the whole description on guile-gtk-general already.) Regards, Neil _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel