
Hi, Has anyone tried/been successful on developing such a binding? Google returns reference to a message written 2 years ago (on the gtkhs mailing list) that someone developed it partially: http://www.haskell.org/pipermail/gtkhs/2003-January/000317.html and a description of a student's assignment: http://www.cse.unsw.edu.au/db/thesis/topicinfo/MMTC13.html The rest of links that Google returns are of little relevance. Any ideas? Dimitry Golubovsky Middletown, CT

our uniform workbench has a "simpleDB" binding to BDB. http://www.informatik.uni-bremen.de/uniform/wb/ The sources can be downloaded with cvs -d \ :pserver:cvsread@cvs-agbkb.informatik.uni-bremen.de:/repository \ co uni and can be compiled with a recent ghc-6.2.2. The only documentation that I'm aware of is a top-level README file. Cheers Christian Dimitry Golubovsky wrote:
Hi,
Has anyone tried/been successful on developing such a binding?

On 2005-02-04, Dimitry Golubovsky
Hi,
Has anyone tried/been successful on developing such a binding?
Funny you should ask. I released one yesterday. http://quux.org/devel/missingpy/html/MissingPy.AnyDBM.html#v%3AopenSpecificD... (Download from http://quux.org/devel/missingpy/) That does go via Python, but Python uses the C binding so the performance hit should be minimal. Python is also highly portable and easy to install, so the convenience hit should also be minimal. Python is also a strongly typed language with exceptions that get propogated into Haskell, so the reliability hit should also be minimal :-) FWIW, this binding works with any *dbm that is supported by Python, which includes dbhash, (n)dbm, gdbm, and its own dumbdbm. I also wrote a StringDBM available in my MissingH library (quux.org/devel/missingh). It is slow and simple, using a HashTable as an in-memory representation and reading/writing it from disk as needed. If all you need is simple persistence, that may do it for you, without requiring any non-Haskell binding at all. If you need the other benefits of *dbm, MissingPy may be what you need. -- John
participants (3)
-
Christian Maeder
-
Dimitry Golubovsky
-
John Goerzen