From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA12258; Wed, 14 Jul 2004 16:28:06 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA22888 for ; Wed, 14 Jul 2004 16:28:05 +0200 (MET DST) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i6EES1EV027028 for ; Wed, 14 Jul 2004 16:28:03 +0200 Received: from [192.168.1.200] (ppp216-145.lns1.syd3.internode.on.net [203.122.216.145]) by smtp3.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id i6EERpHY026964; Wed, 14 Jul 2004 23:57:52 +0930 (CST) Subject: Re: [Caml-list] Re: int hash From: skaller Reply-To: skaller@users.sourceforge.net To: brown@cs.bris.ac.uk Cc: caml-list In-Reply-To: References: <1089797635.29648.472.camel@pelican.wigram> Content-Type: text/plain Message-Id: <1089815270.29648.521.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 15 Jul 2004 00:27:50 +1000 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 40F542F1.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 hash:01 sourceforge:01 2004:99 2004:99 sourceforge:01 hashtables:01 dynarray:01 extlib:01 dynarray:01 lgpl'd:01 lightly:01 extlib:01 hashtables:01 9660:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, 2004-07-14 at 22:16, Julian Brown wrote: > On 2004-07-14, skaller wrote: > > I'm currently using a lot of hashtables with > > sequentially allocated integers as keys. > > Could you not use DynArray from ExtLib instead? For some things .. not necessarily this one .. DynArray would be great .. but it creates a dependence on an unstable third party LGPL'd library. I can neither lift the relevant code (due to the licence), nor lightly require my clients install that library just to build my product. [I have seriously considered requiring ExtLib] BTW: I should explain the hashtables map "arbitrary" subsets of the first n integers, where n grows as time goes on (fresh variable' generator), and there are a quite a few of these tables built (its a compiler, there is a table for every symbol representing its children). -- John Skaller, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners