chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] [PATCH] Add automatic randomization to remaining core


From: Peter Bex
Subject: [Chicken-hackers] [PATCH] Add automatic randomization to remaining core hash-functions
Date: Fri, 20 Apr 2012 20:31:43 +0200
User-agent: Mutt/1.4.2.3i

Hi all,

Attached is a trivial patch to add the procedures number-hash,
object-uid-hash, symbol-hash and keyword-hash to the procedures
considered for "automatic" randomization.

This means that when a user explicitly passes these procedures
to MAKE-HASH-TABLE as the hashing parameter, they will be automatically
called with the extra "randomization" argument.

This omission was pointed out by Jim in ticket #818.  After thinking
why I didn't initially add these I realised that these functions are
*not* automatically selected based on the comparison procedure, like
the ones that are already listed.  Further, the user is expected to do
any randomization themselves when passing a custom hashing function
but I guess we can make an exception for the other core procedures,
which makes it a bit more consistent and easier to use.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth

Attachment: 0001-Add-remaining-hashing-procedures-to-list-of-automati.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]