From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a8c6c308ebb6a246 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!news2.volia.net!newspeer1.de.telia.net!newspeer4.de.telia.net!de.telia.net!newsfeed101.telia.com!nf02.dk.telia.net!newspeer2.se.telia.net!se.telia.net!masternews.telia.net.!newsc.telia.net.POSTED!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn_Persson?= User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: hashed_maps References: <1129046337.130908.137510@g47g2000cwa.googlegroups.com> In-Reply-To: <1129046337.130908.137510@g47g2000cwa.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Date: Thu, 13 Oct 2005 20:55:45 GMT NNTP-Posting-Host: 217.209.116.179 X-Complaints-To: abuse@telia.com X-Trace: newsc.telia.net 1129236945 217.209.116.179 (Thu, 13 Oct 2005 22:55:45 CEST) NNTP-Posting-Date: Thu, 13 Oct 2005 22:55:45 CEST Organization: Telia Internet Xref: g2news1.google.com comp.lang.ada:5612 Date: 2005-10-13T20:55:45+00:00 List-Id: Lucretia wrote: > What's the best way to create a hashed_map which maps from > System.Address :-> an access type? In other words, how do you write a good hash function that turns memory addresses into evenly distributed hash values? I seem to recall that just this question was discussed here in comp.lang.ada some time ago (several months, maybe a year or more ago). You could search in Google groups. (That is, if you really expect to have so many windows that you need to have a hash table and not a tree.) -- Bj�rn Persson PGP key A88682FD omb jor ers @sv ge. r o.b n.p son eri nu