From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.bugs Subject: bug#18223: Duplicate of issue 14792 Date: Sat, 9 Aug 2014 20:16:15 +0800 Message-ID: References: <1407505351-26741-1-git-send-email-dak@gnu.org> <878umy8071.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3c844dafb7e0500314984 X-Trace: ger.gmane.org 1407586644 2005 80.91.229.3 (9 Aug 2014 12:17:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Aug 2014 12:17:24 +0000 (UTC) Cc: 18223@debbugs.gnu.org To: David Kastrup Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Aug 09 14:17:18 2014 Return-path: Envelope-to: guile-bugs@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 1XG5aH-0002tK-8p for guile-bugs@m.gmane.org; Sat, 09 Aug 2014 14:17:17 +0200 Original-Received: from localhost ([::1]:55675 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XG5aG-0001W2-9B for guile-bugs@m.gmane.org; Sat, 09 Aug 2014 08:17:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XG5a8-0001TM-7V for bug-guile@gnu.org; Sat, 09 Aug 2014 08:17:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XG5a2-0003g2-HO for bug-guile@gnu.org; Sat, 09 Aug 2014 08:17:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XG5a2-0003fb-Ez for bug-guile@gnu.org; Sat, 09 Aug 2014 08:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XG5a1-00063H-NN for bug-guile@gnu.org; Sat, 09 Aug 2014 08:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nala Ginrut Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 09 Aug 2014 12:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18223 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch Original-Received: via spool by 18223-submit@debbugs.gnu.org id=B18223.140758658623211 (code B ref 18223); Sat, 09 Aug 2014 12:17:01 +0000 Original-Received: (at 18223) by debbugs.gnu.org; 9 Aug 2014 12:16:26 +0000 Original-Received: from localhost ([127.0.0.1]:36156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XG5ZR-00062I-9q for submit@debbugs.gnu.org; Sat, 09 Aug 2014 08:16:25 -0400 Original-Received: from mail-lb0-f182.google.com ([209.85.217.182]:40723) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XG5ZO-000621-3V for 18223@debbugs.gnu.org; Sat, 09 Aug 2014 08:16:23 -0400 Original-Received: by mail-lb0-f182.google.com with SMTP id z11so4515351lbi.41 for <18223@debbugs.gnu.org>; Sat, 09 Aug 2014 05:16:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=XXNf9heaGf2+DIaiJvOp+SIxHdJY0d6JCOC54Gvgs8U=; b=irmlFRY7gg1kQtLcj/+xHnvxyT7vVEd8mxjOz2QNbQ+OsHau8bGfUAityb3teGoli8 APEbRh0NMl1iqYuFmuP2XU/riBoCAtdNuWktnoZ9DLndwHOMd+0Sck+jpVh/8RJFDF8e g0YvpRd/OANvg3nXchaRtO4WGjdB8MP4FN0KERXBvt5iF2mheU/31WUwSHrbA53cJXM2 Whweb7QsSw8kCn4WlPvDetv+ByoNTLHBc7kBTNOITuh2scnrR0QUHGVoeMfRH6XFwQwH PcTyaLeRVdR8gZXXKG57rkLmEhw/6zMrjouLkCWnZdCpaxM5prJrX8XhRSl530+LagXp XGfQ== X-Received: by 10.112.205.200 with SMTP id li8mr1769725lbc.70.1407586576036; Sat, 09 Aug 2014 05:16:16 -0700 (PDT) Original-Received: by 10.152.122.99 with HTTP; Sat, 9 Aug 2014 05:16:15 -0700 (PDT) Original-Received: by 10.152.122.99 with HTTP; Sat, 9 Aug 2014 05:16:15 -0700 (PDT) In-Reply-To: <878umy8071.fsf@fencepost.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7529 Archived-At: --001a11c3c844dafb7e0500314984 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I can't reproduce it, but I'm using the latest mater. Could you provide your version? 2014=E5=B9=B48=E6=9C=889=E6=97=A5 =E4=B8=8B=E5=8D=885:47=E4=BA=8E "David K= astrup" =E5=86=99=E9=81=93=EF=BC=9A > > This is actually a duplicate of issue 14792 which has been ignored for > over a year by now. > > Please see > for the reason the provided patch (namely discouraging the use of > numbers for object properties) is the only one making sense. > > Here is the rationale in code: object properties are implemented via > key-weak hash tables, and weak hash tables will not work with eqv? as > equivalence since key-weakness is related to garbage collection which > cannot consider anything but eq?-equivalence. > > scheme@(guile-user)> (define x (make-weak-key-hash-table)) > scheme@(guile-user)> (hashv-set! x 100000000000000000000 #t) > $6 =3D #t > scheme@(guile-user)> (gc) > scheme@(guile-user)> (hashv-ref x 100000000000000000000) > $7 =3D #f > > Guile and/or Scheme do not store the equivalence relation in the > hashtable itself, and user-definable hash functions may establish > arbitrary relations regarding key uniqueness that have no clear relation > to the object identity used by garbage collection. > > -- > David Kastrup > > > > --001a11c3c844dafb7e0500314984 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I can't reproduce it, but I'm using the latest mater= . Could you provide your version?

2014=E5=B9=B48=E6=9C=889=E6=97=A5 =E4=B8=8B=E5= =8D=885:47=E4=BA=8E "David Kastrup" <dak@gnu.org>=E5=86=99=E9=81=93=EF=BC=9A

This is actually a duplicate of issue 14792 which has been ignored for
over a year by now.

Please see <URL:http://debbugs.gnu.org/cgi/bugreport.cgi?bug= =3D14792#35>
for the reason the provided patch (namely discouraging the use of
numbers for object properties) is the only one making sense.

Here is the rationale in code: object properties are implemented via
key-weak hash tables, and weak hash tables will not work with eqv? as
equivalence since key-weakness is related to garbage collection which
cannot consider anything but eq?-equivalence.

scheme@(guile-user)> (define x (make-weak-key-hash-table))
scheme@(guile-user)> (hashv-set! x 100000000000000000000 #t)
$6 =3D #t
scheme@(guile-user)> (gc)
scheme@(guile-user)> (hashv-ref x 100000000000000000000)
$7 =3D #f

Guile and/or Scheme do not store the equivalence relation in the
hashtable itself, and user-definable hash functions may establish
arbitrary relations regarding key uniqueness that have no clear relation to the object identity used by garbage collection.

--
David Kastrup



--001a11c3c844dafb7e0500314984--