From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: hash-table-{to, from}-alist Date: Tue, 02 Dec 2008 08:27:18 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86myfebqk9.fsf@lifelogs.com> References: <863aknitfg.fsf@lifelogs.com> <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> <87bpw4k1z6.fsf@xemacs.org> <86bpw3d829.fsf@lifelogs.com> <87k5ari5jh.fsf@xemacs.org> <86prkiiia2.fsf@lifelogs.com> <86ej0ygr5j.fsf@lifelogs.com> <861vwygpc6.fsf@lifelogs.com> <868wqzd06x.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 1228228111 24023 80.91.229.12 (2 Dec 2008 14:28:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2008 14:28:31 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 02 15:29:35 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 1L7WFn-0004AR-RS for ged-emacs-devel@m.gmane.org; Tue, 02 Dec 2008 15:29:32 +0100 Original-Received: from localhost ([127.0.0.1]:59829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7WEd-00008T-A6 for ged-emacs-devel@m.gmane.org; Tue, 02 Dec 2008 09:28:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7WEY-00008K-3I for emacs-devel@gnu.org; Tue, 02 Dec 2008 09:28:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7WEW-000084-Eh for emacs-devel@gnu.org; Tue, 02 Dec 2008 09:28:13 -0500 Original-Received: from [199.232.76.173] (port=41443 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7WEW-000081-5M for emacs-devel@gnu.org; Tue, 02 Dec 2008 09:28:12 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:42057 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L7WEV-0006Bd-On for emacs-devel@gnu.org; Tue, 02 Dec 2008 09:28:12 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L7WER-00077K-Qw for emacs-devel@gnu.org; Tue, 02 Dec 2008 14:28:07 +0000 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Dec 2008 14:28:07 +0000 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Dec 2008 14:28:07 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:5LSmP6EkkR6c8vWhNfGPZiNHsAA= 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:106426 Archived-At: On Tue, 02 Dec 2008 01:13:49 +0100 Andreas Schwab wrote: AS> Ted Zlatanov writes: >> I really wish I could write all this in ELisp :) AS> That should be fairly easy by introducing a variable, say, AS> hash-table-reader-function and just calling its value when set (and AS> bailing out if not). That can then be implemented fully in Lisp. Yes, I considered that, but I'm potentially reading thousands of entries so I wanted to keep the code as fast as possible. Splitting the code into an ELisp setup phase and a C fast data filler is probably the easiest solution if I go that route, but I have to say I enjoyed my trip in the C side of Emacs so I'd like to figure out the C way to do what I proposed. Specifically, converting a C LispObject holding the symbol "test" to the symbol ":test" without hard-coding, and passing an array of LispObject elements to make-hash-table, are my main issues right now. Ted