
Does anybody know about a mutable hash implementation for ghc? There is going to be a lot of updates in the hash (some millions adds and removes) so a non-mutable structure will not do?! Cheers, Petter ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/

There is a hashtable in the IO monad: http://www.haskell.org/ghc/docs/latest/html/libraries/base/Data.HashTable.ht... I understand there was an important bugfix that went into 6.2.2 for this hashtable implementation, so you'll probably want to make sure to use the latest GHC if you'll be using this. Petter Egesund wrote:
Does anybody know about a mutable hash implementation for ghc?
There is going to be a lot of updates in the hash (some millions adds and removes) so a non-mutable structure will not do?!
Cheers,
Petter
###########################################
This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/
------------------------------------------------------------------------
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

On Thu, Oct 21, 2004 at 09:17:20AM -0400, Robert Dockins wrote:
There is a hashtable in the IO monad:
http://www.haskell.org/ghc/docs/latest/html/libraries/base/Data.HashTable.ht...
Why is it in IO instead of the more general ST? IMHO _all_ mutable data structures should be written for ST (or a generalization thereof), since one can always use stToIO if operation in the IO monad is really required. Lauri Alanko la@iki.fi

G'day.
Quoting Petter Egesund
Does anybody know about a mutable hash implementation for ghc?
How about three of them? http://cvs.sourceforge.net/viewcvs.py/haskell-libs/libs/hashtable/ They're all concurrency-safe. Cheers, Andrew Bromage
participants (4)
-
ajb@spamcop.net
-
Lauri Alanko
-
Petter Egesund
-
Robert Dockins