From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxime Devos Newsgroups: gmane.lisp.guile.user Subject: Re: Need help embedding Guile Date: Wed, 22 Dec 2021 15:23:42 +0000 Message-ID: References: <2a789e248ef8d1922caec7af553cf26e9b360619.camel@telenet.be> <87ee65shtv.fsf@laura> <878rwcsnnf.fsf@laura> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7722"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.38.3-1 Cc: "guile-user@gnu.org" To: Olivier Dion , Dimitris Papavasiliou Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Dec 22 16:24:31 2021 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n03Tj-0001qh-3D for guile-user@m.gmane-mx.org; Wed, 22 Dec 2021 16:24:31 +0100 Original-Received: from localhost ([::1]:57364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n03Ti-00028R-2g for guile-user@m.gmane-mx.org; Wed, 22 Dec 2021 10:24:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n03T5-0000ye-Jg for guile-user@gnu.org; Wed, 22 Dec 2021 10:23:51 -0500 Original-Received: from [2a02:1800:120:4::f00:14] (port=59194 helo=xavier.telenet-ops.be) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n03T3-0000j1-IB for guile-user@gnu.org; Wed, 22 Dec 2021 10:23:51 -0500 Original-Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by xavier.telenet-ops.be with bizsmtp id ZTPj2600F4UW6Th01TPjFR; Wed, 22 Dec 2021 16:23:44 +0100 In-Reply-To: <878rwcsnnf.fsf@laura> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1640186624; bh=wXZ+7/StcysJhwQpCtJcjcC3JFsfRgZjTiOFPVoxPdY=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=uV29oJRKYsEelbfiPX5D5Xt7HtgraIA92YKi9VXARsHnwa15Cn4XHmgXDRrEmE8F0 W9TmhKzqKC+PMhBJ3p5MTZTprHJm6jr+0YO4A5fYG/HLRuh4LXMi43B2KIEcEsIBU3 GRWjTSaozunGzyNAPhho/PwZxcifsfm1RsO4TnhBKanQtcydbl6jDgCCeclgusu4wt xfHkUXxvFrYQfQCtFyFBO47j5a3kehYuvgJRKrNfnnq/qkPMsUYD3lWEEsuzP316q3 8wqrzYkYF7F5gWSrCdfLo6QGG1P5y1FbJOmnzo0vzcotQLYqVNFe3up2N9+MhIz8zG thvri3eocpCUg== X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:1800:120:4::f00:14 (failed) Received-SPF: pass client-ip=2a02:1800:120:4::f00:14; envelope-from=maximedevos@telenet.be; helo=xavier.telenet-ops.be X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17903 Archived-At: Olivier Dion schreef op wo 22-12-2021 om 09:46 [-0500]: > From `eval-in-sandbox` documentation: > >  If SEVER-MODULE? is true (the default), the module will be unlinked >  from the global module tree after the evaluation returns, to allow MOD >  to be garbage-collected. > > So I _think_ you're guarantee here that all references in your module > will be garbage collected.  You can then do a single `gc/finalizer`. No, there are no guarantees, because the GC (bdw-gc) is conservative. However, _most_ unreachable objects should be collected (though not all!).