caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [ANN] Weaktbl: a weak hash table library
@ 2007-10-02  4:50 Zheng Li
  2007-10-02 11:07 ` [Caml-list] " skaller
  2007-10-04 16:01 ` Zheng Li
  0 siblings, 2 replies; 4+ messages in thread
From: Zheng Li @ 2007-10-02  4:50 UTC (permalink / raw)
  To: caml-list


Hi,

I remember weak hash table was discussed on the list not long ago. I once ran
into a situation where weak data structure was desired, and came up with this
small module. Though I didn't really get a chance to make use of it (I turned
to another solution laterly), I'd like to share and hope it would be useful to
others. 

== Description ==

Weaktbl is yet another weak hash table library for OCaml. Its main features
include:

 * Both keys and associated values are weakly stored. A binding exists until
   the key is no longer referenced anywhere
 * The implementation is built upon the hash table functor of Weak library
   rather than implemented from scratch, so it's rather small
 * The interface is fully compatible with the standard Hashtbl library instead
   of the hash sub-module of the Weak library, so basically you can also use it
   as an alternative of the standard Hashtbl
 * Its behaviors also follow the standard Hashtbl library's conventions. 
   E.g. the "binding orders" and the "current binding" concepts all make
   sense here (with find/find_all/remove/replace/iter/fold etc.)

Link: http://www.pps.jussieu.fr/~li/software/index.html#weaktbl

Cheers
-- 
Zheng Li
http://www.pps.jussieu.fr/~li


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-10-04 16:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-02  4:50 [ANN] Weaktbl: a weak hash table library Zheng Li
2007-10-02 11:07 ` [Caml-list] " skaller
2007-10-03 10:43   ` Zheng Li
2007-10-04 16:01 ` Zheng Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).