Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 36104 invoked from network); 25 Dec 2010 16:30:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Dec 2010 16:30:58 -0000 Received: (qmail 56860 invoked by uid 500); 25 Dec 2010 16:30:57 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 56499 invoked by uid 500); 25 Dec 2010 16:30:55 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 56492 invoked by uid 99); 25 Dec 2010 16:30:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Dec 2010 16:30:54 +0000 X-ASF-Spam-Status: No, hits=2.1 required=10.0 tests=FREEMAIL_FROM,FREEMAIL_REPLYTO,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simon.willnauer@googlemail.com designates 209.85.216.48 as permitted sender) Received: from [209.85.216.48] (HELO mail-qw0-f48.google.com) (209.85.216.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Dec 2010 16:30:48 +0000 Received: by qwh6 with SMTP id 6so7954388qwh.35 for ; Sat, 25 Dec 2010 08:30:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to :in-reply-to:references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=G3bZwblfAXlDvIwD6XcNQmO337JKBBzaCia+BntPvk0=; b=UOddPLZJ8BNKyme/h6f/CXpzlRY9o3vnqEOTQKOmC46ynaEpsFu9Orv9EKTPsBpVLv 4YXiWWZ+QLw7DN/ZM+tAt9JFa7ZfWh37RkBU3yTJLCi5zIHs+R66yHgmhgqY9apgHlMV cLfaN/TrOwAnMzFtf/Cl07YYaGfie41/+on3o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; b=pmLB8VyLt5YszSw8IHAisW9q6+z7yDRAxdSixoQrkhOY+A2GR8vJ3nXgqPnS33sZgE lLnpNj+GQEWOHXklZsZErfa+UcuSjcI6gPBTMN+clybqyoi33Br5mbSnid8YPcgTkDyG LU1vxpq4IxgrEC2T2L761CpddS5oc5RiQWWrs= MIME-Version: 1.0 Received: by 10.224.67.79 with SMTP id q15mr9748098qai.394.1293294625031; Sat, 25 Dec 2010 08:30:25 -0800 (PST) Received: by 10.220.183.4 with HTTP; Sat, 25 Dec 2010 08:30:24 -0800 (PST) Reply-To: simon.willnauer@gmail.com In-Reply-To: References: <0a0fe7d8-4e88-420e-870a-2eac021ba939@email.android.com> Date: Sat, 25 Dec 2010 17:30:24 +0100 Message-ID: Subject: Re: LuceneTestCase.threadCleanup incorrectly reports left running threads From: Simon Willnauer To: dev@lucene.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Sat, Dec 25, 2010 at 3:05 PM, Earwin Burrfoot wrote: > I think we can take some public algos like lookup3 / murmurhash2/3, > and stuff them into Lucene utils. > > Java implementations (very simple and fast ones) exist for both of these. > > I.e. lookup3 done by Yonik (http://people.apache.org/~yonik/code/hash/), > murmurhash2 - by Andrzej Bialecki ( > http://www.getopt.org/murmur/MurmurHash.java ) used in Hadoop? > non-compatible with original?, > a version by Derek Young ( > http://dmy999.com/article/50/murmurhash-2-java-port ), > a version by Ted Dunning for Mahout, > a random version off Google by Viliam Holub ( > http://d3s.mff.cuni.cz/~holub/sw/javamurmurhash/ ) > > lookup3 defines versions returning 32/64bit hashes, murmurhash2 - > 32/64bit, murmurhash3 - 32/64/128bit Earwin, I like your suggestion - that seems to be very straight forward and will work on every JVM as far as I can see. No need to rely on anything else or include a whole crypto lib. simon > > They are just generally useful for many text-processing apps. > > On Sat, Dec 25, 2010 at 16:20, Robert Muir wrote: >> On Sat, Dec 25, 2010 at 4:04 AM, Uwe Schindler wrote: >>> Md5 is guaranteed to be there (like utf8 as charset). This is documente= d in crypto Api, which algorithms are available for digest. >>> >> >> where is this documented? its not in the javadocs. >> >> anyway, we shouldn't be doing this: >> * this algorithm might not exist on J2ME etc (still java), you need to >> install an extra crypto add-on. >> * we shouldnt start up an expensive PKI infrastructure on mac os X, >> including spawning a new thread, just to hash a string. thats absurd. >> * we pay all these costs ... for md5! its not even a good hash! >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org >> For additional commands, e-mail: dev-help@lucene.apache.org >> >> > > > > -- > Kirill Zakharenko/=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB =D0=97=D0=B0=D1=85= =D0=B0=D1=80=D0=B5=D0=BD=D0=BA=D0=BE (earwin@gmail.com) > Phone: +7 (495) 683-567-4 > ICQ: 104465785 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: dev-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org