From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "John Wiegley" Newsgroups: gmane.emacs.devel Subject: Re: Weak reference facility in Emacs. Date: Thu, 23 Jan 2020 09:59:08 -0800 Message-ID: References: <877e1jlgy1.wl-all_but_last@163.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="76659"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) Cc: emacs-devel@gnu.org To: Zhu Zihao Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 23 20:59:39 2020 Return-path: Envelope-to: ged-emacs-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 1iuide-000Jt0-7E for ged-emacs-devel@m.gmane-mx.org; Thu, 23 Jan 2020 20:59:38 +0100 Original-Received: from localhost ([::1]:60978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuidd-0006Js-9t for ged-emacs-devel@m.gmane-mx.org; Thu, 23 Jan 2020 14:59:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36038) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuglI-0000fa-2s for emacs-devel@gnu.org; Thu, 23 Jan 2020 12:59:26 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iuglD-0003k2-Py; Thu, 23 Jan 2020 12:59:20 -0500 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:56851) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1iuglA-0001pb-Oa; Thu, 23 Jan 2020 12:59:18 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 949F7220C7; Thu, 23 Jan 2020 12:59:15 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 23 Jan 2020 12:59:15 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrvddvgdejvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufgjfffkfhgfgggtsehttdertd dtredtnecuhfhrohhmpedflfhohhhnucghihgvghhlvgihfdcuoehjohhhnhifsehgnhhu rdhorhhgqeenucffohhmrghinhepnhgvfigrrhhtihhsrghnshdrtghomhenucfkphepje eirddvfeegrdeiledrudegleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehjohhhnhifodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhith ihqdeikeejkedtleeggedqudejjeehfeekudeiqdhjohhhnhifpeepghhnuhdrohhrghes nhgvfigrrhhtihhsrghnshdrtghomh X-ME-Proxy: Original-Received: from localhost (76-234-69-149.lightspeed.frokca.sbcglobal.net [76.234.69.149]) by mail.messagingengine.com (Postfix) with ESMTPA id E3243328005D; Thu, 23 Jan 2020 12:59:14 -0500 (EST) In-Reply-To: <877e1jlgy1.wl-all_but_last@163.com> (Zhu Zihao's message of "Wed, 22 Jan 2020 22:11:02 +0800") Mail-Followup-To: Zhu Zihao , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:244549 Archived-At: >>>>> "ZZ" == Zhu Zihao writes: ZZ> Would you interest in some lisp library to wrap a weak table to provide ZZ> weak referenece utils. Or it's better to implement it in alloc.c? I would prefer this not to be alloc.c, but to use existing idioms until it proves to be of enough general use that it warrants optimization by moving into the C code. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2