From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#56255: 28.1.50; sxhash-equal does not change when object is modified Date: Wed, 29 Jun 2022 14:38:06 +0200 Message-ID: <875ykjhcgh.fsf@gnus.org> References: <87v8sm70ma.fsf@localhost> <87y1xhu34f.fsf@gnus.org> <87r139u2y6.fsf@gnus.org> <874k05q70i.fsf@gnus.org> <87sfnokz6p.fsf@localhost> <87o7yblreq.fsf@gnus.org> <87r137kcbt.fsf@localhost> <87fsjnlqrh.fsf@gnus.org> <87ilojk5tq.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39436"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 56255@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 29 14:40:01 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1o6WzA-000A5v-Ii for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 14:40:00 +0200 Original-Received: from localhost ([::1]:57724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6Wz9-0006e1-9D for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 08:39:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6WyH-0006dR-Og for bug-gnu-emacs@gnu.org; Wed, 29 Jun 2022 08:39:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35859) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6WyE-0003Lb-8Q for bug-gnu-emacs@gnu.org; Wed, 29 Jun 2022 08:39:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6WyD-0005YV-Oj for bug-gnu-emacs@gnu.org; Wed, 29 Jun 2022 08:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jun 2022 12:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56255 X-GNU-PR-Package: emacs Original-Received: via spool by 56255-submit@debbugs.gnu.org id=B56255.165650632321324 (code B ref 56255); Wed, 29 Jun 2022 12:39:01 +0000 Original-Received: (at 56255) by debbugs.gnu.org; 29 Jun 2022 12:38:43 +0000 Original-Received: from localhost ([127.0.0.1]:57989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6Wxk-0005Xe-9F for submit@debbugs.gnu.org; Wed, 29 Jun 2022 08:38:43 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:59690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6WxX-0005XE-Ho for 56255@debbugs.gnu.org; Wed, 29 Jun 2022 08:38:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6x4W3W0eOG6meXdlw8RzBWEVZXE0KdoOo57VKbRYIzo=; b=jw3J0AQADkyi7BCacdGSv4mvrQ nBdkKIJ9y7+aIjlOMtmSkvf/JwyRX6X7D9u/Ln9TTgUTGWwIIzNFs7X5IYLsiCqXr3CTXav8VDDFi ZbAbsvD+mXNXTv/lFjbhiXSJNcRhmpsRGr86pCzEfCGIHbjgF7OvdUC3s5T/fiKVGP0w=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o6WxM-0007r3-N2; Wed, 29 Jun 2022 14:38:11 +0200 In-Reply-To: <87ilojk5tq.fsf@localhost> (Ihor Radchenko's message of "Wed, 29 Jun 2022 20:33:05 +0800") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAALVBMVEX+9gbg0ROpoBXc qA5kXRvYzl6zqrCCd4YcGBtWTkugkZHGvLizqWjATiP///9pRmVwAAAAAWJLR0QOb70wTwAAAAd0 SU1FB+YGHQwcL2VGsb0AAAFcSURBVDjL3dMxS8NAFAfwXJKCg4W74gdIzgp1O+tciOGGVjpUIRmk ayNtVynRsQS9FieHkurcUnUX9AOIe+Z8F18Hh7zc4OLiCyFwP97/LneJYfxNMe2oSZou10GNS186 uhzG+L7Qtxzpp65LXz874zVh/LpIAHUWBOdBQAtQiS5n0SCM0nnUw5CuB+FoffeGYfz+Ch0fi1LH +PoG4LkMy/hWC30pu7Cofhet6qfKo0TaJ4ax50lMh4mtHFM57SmCjms1PNunzQTveWfHF2CJi6D9 YCrP1kRJbtYhyuE+jkrsKbXanipF+RC1q0TjHgEkmF4FtuOg/IqUEVLeC8ZqHG6Xoe+hEiulVuFQ qUUPQwqQztQEwVDFs0EYz1PcMVKbOcBTrAE4wXiywfAir05XF+nn12MRrGx75aIlclGAqmjl4jiz 8qxaBGLl1YxQaKDobAnd/oFs+/xXRb4BPMtlQU4bZ1MAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjIt MDYtMjlUMTI6Mjg6NDcrMDA6MDBBUqcEAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA2LTI5VDEy OjI4OjQ3KzAwOjAwMA8fuAAAAABJRU5ErkJggg== X-Now-Playing: Sleaford Mods's _Spare Ribs_: "Thick Ear" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:235633 Archived-At: Ihor Radchenko writes: > The original idea was to detect changed objects in most generic way, as > a part of persistent storage library. Oh well. We could make SXHASH_MAX_DEPTH into a defvar -- or pass the depth in to `sxhash-equal'. However, the hash it's computing is geared towards hash tables, so collisions are OK -- it's not a cryptographic hash, so I'm not sure it would fit your use case anyway. I.e., our sxhash_combine is very simple. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no