From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexandru Cojocaru Newsgroups: gmane.lisp.guile.user Subject: Re: Which hashtable API to use? Date: Fri, 16 Aug 2013 15:33:26 +0200 Message-ID: <520E2A26.90009@gmx.com> References: <520E0F3E.8060509@gmx.com> <435D291C-3BE1-4F7C-9A23-E8A803F981C8@alumni.caltech.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1376660043 12117 80.91.229.3 (16 Aug 2013 13:34:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Aug 2013 13:34:03 +0000 (UTC) Cc: guile-user@gnu.org To: Matt Wette Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Aug 16 15:34:05 2013 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VAKAF-0001FL-Dk for guile-user@m.gmane.org; Fri, 16 Aug 2013 15:34:03 +0200 Original-Received: from localhost ([::1]:59068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAKAF-0007Se-2S for guile-user@m.gmane.org; Fri, 16 Aug 2013 09:34:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAK9x-0007SM-Mn for guile-user@gnu.org; Fri, 16 Aug 2013 09:33:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VAK9o-0002EQ-Eo for guile-user@gnu.org; Fri, 16 Aug 2013 09:33:45 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:61721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAK9o-0002EK-4p for guile-user@gnu.org; Fri, 16 Aug 2013 09:33:36 -0400 Original-Received: from [178.132.150.42] ([178.132.150.42]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0Likl3-1VgdEZ2grV-00d2gE for ; Fri, 16 Aug 2013 15:33:35 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <435D291C-3BE1-4F7C-9A23-E8A803F981C8@alumni.caltech.edu> X-Provags-ID: V03:K0:nP5i1m/ES6TOUVr1PZDoxtO9b14XoVG8fNaSxCDOmvIW15HRZ49 FZf2unvZBQr58DDR5iwkwHGCCHKUIeZ3dpmKpkrThQtFA2HeDYTCqKq2bJsCZE5j4RVxnGY Awyn01xydx0JiUo2VmHONcEJgwZVlzfZxh3fZ4OpTPZGZmO5EjWGaR3MceuvOlSiGkx287O I1lC2RAx0LWyLuubXwRqQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.22 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10642 Archived-At: Ok, I got it. Basicaly if I do `(hash '(a) 3)' I'll always get the same hash because it uses the contents of the list, while if I do `(hashq '(a) 3)' I may get different hashes because it uses the list's pointer address. On 16.08.2013 14:47, Matt Wette wrote: > WIth respect to your second question: hash table operations can compare keys with equal?, eq?, or eqv?. > Which one do you want to use? > > On Aug 16, 2013, at 4:38 AM, Alexandru Cojocaru wrote: > >> Hi, >> currently there are three hashtable APIs: R6RS, SRFI-69 and Guile's one. >> Which one to choose? >> >> Also what's exactly the difference between hash, hashq and hashv? >> >> Best regards, >> Alexandru Cojocaru >>