Flexible and efficient recursive hashing

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 17 06:49:47 PDT 2014


On Tue, Sep 16, 2014 at 02:53:51PM +0000, bearophile via Digitalmars-d wrote:
> Among the CppCon 2014 slide packs there is this nice one:
> 
> "Types Don't Know #", by Howard Hinnant:
> 
> https://github.com/CppCon/CppCon2014/tree/master/Presentations/Types%20Don%27t%20Know%20%23%20-%20Howard%20Hinnant%20-%20CppCon%202014
> 
> It shows a nice idea to perform transitive hashing in a flexible and
> efficient way. Perhaps the idea can be used in D too. It suggests the
> introduction of a hashAppend standard method.
[...]

This is all the more reason to make rt.util.hash.hashOf available to
user code. It already supports chaining, which would be the equivalent
of hashAppend.


T

-- 
The computer is only a tool. Unfortunately, so is the user. -- Armaphine, K5


More information about the Digitalmars-d mailing list