Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Cross-platform DBM equivalent?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-12-26 (19:20)
From: Dmitry Bely <dbely@m...>
Subject: Re: [Caml-list] Cross-platform DBM equivalent?
Pierre Weis <> writes:

>> > >I am developing an application that needs fast access to persistent
>> > >configuration data, and I thought that DBM might be a good way to
>> > >provide that functionality ...
> As far as I know the best (and simpler) way to do this for reasonable
> number of URLs bindings (say thousands but not millions) is to create
> a Hashtlbl.t or Map.t and dump it to file using output_value (then
> read it back with input_value). In any case, I would start with this
> solution, since it provides cross-platform persistency with 4 lines of
> Caml code. A fast and easy way to obtain fast and good results!

Can marshalling functions output be different for different versions of
Ocaml? If I try to feed incompatible data (e.g. form the previous version)
to input_value, what I will have then - segfault? If so, they can hardly be
used for saving configuration data.

- Dmitry Bely

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: