
Is there someone who has implemented some limited form of persistency in haskell? I don't mean the longly-debated persistence of functional values, but something rough, like a persistent MVar with a thread saving modified values every n seconds or so. Vincenzo

that is exactly what I implemented in ginsu http://repetae.net/john/computer/ginsu/ an MVar contains the current puff history, which s dumped to disk periodically if it has changed since the last dump, it relys on using DrIFT to derive a Binary instance for [Puff] and concurrency to spawn off a thread that does nothing but dump it to disk periodically. I also have some code to insure errors don't corrupt the file like atomically overwriting it with a rename. John On Mon, Aug 04, 2003 at 07:25:02PM +0200, Nick Name wrote:
Is there someone who has implemented some limited form of persistency in haskell? I don't mean the longly-debated persistence of functional values, but something rough, like a persistent MVar with a thread saving modified values every n seconds or so.
Vincenzo -- Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- --------------------------------------------------------------------------- John Meacham - California Institute of Technology, Alum. - john@foo.net ---------------------------------------------------------------------------

On Mon, 4 Aug 2003 14:55:18 -0700
John Meacham
an MVar contains the current puff history, which s dumped to disk periodically if it has changed since the last dump, it relys on using DrIFT to derive a Binary instance for [Puff] and concurrency to spawn off a thread that does nothing but dump it to disk periodically
Ok, don't know when but I'll use it :) Are you the author of the "Bin" module? I was sure I heard of binary marshalling for haskell but did not remember where (and also I seem to remember that Hal Daume III did something similar, did you work together?) Do you distribute it as a separate library? I find it necessary or so :) Thanks Vincenzo
participants (2)
-
John Meacham
-
Nick Name