From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christine Lemmer-Webber Newsgroups: gmane.lisp.guile.devel Subject: Re: Ephemerons, self-referentality in weak hashtables Date: Wed, 08 Sep 2021 12:18:15 -0400 Message-ID: <87fsuf9h1f.fsf@dustycloud.org> References: <87vb9ihy6x.fsf@igalia.com> <87czto11vd.fsf@dustycloud.org> <4ddb8c54cdbdcaf1644ce07bb5cad261ebb86600.camel@telenet.be> <8b9906861b138901e0ed17f640506d70a686ec51.camel@telenet.be> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4654"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.2; emacs 27.2 Cc: Andy Wingo , guile-devel@gnu.org To: Maxime Devos Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Wed Sep 08 18:19:27 2021 Return-path: Envelope-to: guile-devel@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 1mO0IH-00011D-Bx for guile-devel@m.gmane-mx.org; Wed, 08 Sep 2021 18:19:25 +0200 Original-Received: from localhost ([::1]:52152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mO0IG-0005d0-3X for guile-devel@m.gmane-mx.org; Wed, 08 Sep 2021 12:19:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mO0I3-0005cq-S7 for guile-devel@gnu.org; Wed, 08 Sep 2021 12:19:11 -0400 Original-Received: from dustycloud.org ([50.116.34.160]:58560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mO0I2-0003PZ-EE for guile-devel@gnu.org; Wed, 08 Sep 2021 12:19:11 -0400 Original-Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 2DA112661B; Wed, 8 Sep 2021 12:19:09 -0400 (EDT) In-reply-to: <8b9906861b138901e0ed17f640506d70a686ec51.camel@telenet.be> Received-SPF: pass client-ip=50.116.34.160; envelope-from=cwebber@dustycloud.org; helo=dustycloud.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20847 Archived-At: Maxime Devos writes: > [[PGP Signed Part:Undecided]] > Maxime Devos schreef op zo 20-06-2021 om 17:01 [+0200]: >> Christopher Lemmer Webber schreef op di 18-05-2021 om 11:46 [-0400]: >> > Hello, >> > >> > I'm finally taking some time to port Goblins to Guile, in-between other >> > tasks anyway. In Goblins there is a weak hashtable that maps current >> > actor references to their current behavior. I found that for >> > self-referential actors, I needed ephemerons for GC stuff to work right. >> >> [bla bla on how this could be implemented in Guile] > > This doesn't work because there is nothing preventing the > 'value' from being freed. Trying to fix that now, using > the example implementation of "weak maps" in libgc. > > Greetings, > Maxime. I fell off the radar on replying to this, but did path turn out to work? Thank you for researching and developing a solution to this!