From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Lemmer Webber Newsgroups: gmane.lisp.guile.devel Subject: Ephemerons, self-referentality in weak hashtables Date: Tue, 18 May 2021 11:46:14 -0400 Message-ID: <87czto11vd.fsf@dustycloud.org> References: <87vb9ihy6x.fsf@igalia.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="485"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.15; emacs 27.2 Cc: Andy Wingo To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Tue May 18 17:56:16 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 1lj24u-000Aan-Lx for guile-devel@m.gmane-mx.org; Tue, 18 May 2021 17:56:16 +0200 Original-Received: from localhost ([::1]:48984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lj24t-0007uK-N1 for guile-devel@m.gmane-mx.org; Tue, 18 May 2021 11:56:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lj1vG-0007yW-9k for guile-devel@gnu.org; Tue, 18 May 2021 11:46:18 -0400 Original-Received: from dustycloud.org ([50.116.34.160]:39080) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lj1vE-0001Dg-MM for guile-devel@gnu.org; Tue, 18 May 2021 11:46:18 -0400 Original-Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id E8DF926614; Tue, 18 May 2021 11:46:14 -0400 (EDT) In-reply-to: <87vb9ihy6x.fsf@igalia.com> 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:20772 Archived-At: 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. In this old thread I found Wingo mentioning them: Andy Wingo writes: > * If there is a possibility of a path from B to A, you need an > ephemeron table, and Guile doesn't do that right now. But it > should! Is there something ephemeron-like I should be doing?