From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: hash-table-{to, from}-alist Date: Tue, 25 Nov 2008 16:02:38 +0900 Message-ID: <873ahgjnjl.fsf@xemacs.org> References: <863aknitfg.fsf@lifelogs.com> <20080830051807.GB9625@tomas> <86bpwe9su5.fsf@lifelogs.com> <867i6z1jo5.fsf_-_@lifelogs.com> <86ej14vhvg.fsf@lifelogs.com> <20081122054510.GA28298@tomas> <873ahkkkt5.fsf@xemacs.org> <20081122152126.GA4142@tomas> <87vdufk6do.fsf@xemacs.org> <867i6tt4yz.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227596367 20044 80.91.229.12 (25 Nov 2008 06:59:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2008 06:59:27 +0000 (UTC) Cc: Ted Zlatanov , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 25 08:00:30 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L4ruP-0007fO-Fh for ged-emacs-devel@m.gmane.org; Tue, 25 Nov 2008 08:00:29 +0100 Original-Received: from localhost ([127.0.0.1]:46526 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4rtG-0001YR-0K for ged-emacs-devel@m.gmane.org; Tue, 25 Nov 2008 01:59:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L4rtB-0001Ww-FS for emacs-devel@gnu.org; Tue, 25 Nov 2008 01:59:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L4rt9-0001Ve-KE for emacs-devel@gnu.org; Tue, 25 Nov 2008 01:59:12 -0500 Original-Received: from [199.232.76.173] (port=34573 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4rt9-0001Vb-Ei for emacs-devel@gnu.org; Tue, 25 Nov 2008 01:59:11 -0500 Original-Received: from mtps01.sk.tsukuba.ac.jp ([130.158.97.223]:45918) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L4rt9-0004h6-2h for emacs-devel@gnu.org; Tue, 25 Nov 2008 01:59:11 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps01.sk.tsukuba.ac.jp (Postfix) with ESMTP id A0FFC1537B2; Tue, 25 Nov 2008 15:59:06 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id AFBBA1A2D03; Tue, 25 Nov 2008 16:02:39 +0900 (JST) In-Reply-To: X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta28) "fuki" 83e35df20028+ XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:106134 Archived-At: Stefan Monnier writes: > I don't know what "size" is meant to represent in XEmacs's or CL's use > of this representation. Is it the expected average number of elements > in the table? or the expected max number of elements? or the current > number of elements? Size is the actual number of elements currently in the table. In XEmacs, weak elements that are "no longer there" are not guaranteed to be removed from the table at any particular time, and I suspect size is ambiguous for weak tables. Ask Mike Sperber (XEmacs.org mailbox "mike") and/or Martin Buchholz ("martin") if you want to know the details and the design. In the XEmacs implementation, the parameters of #s(hash-table ...) are simply passed to make-hash-table, so as Ted says, it's just a hint.