Re: [Haskell] Simple and Easy Persistence

2005-12-09 Thread Jeremy Shaw
At Thu, 8 Dec 2005 16:40:15 +0200, Krasimir Angelov wrote: > > Hello Guys, > If there are voluntiers I would like to cooperate in the development. Hello, I would be interested in helping with this a bit. Conveniently, I currently maintain NewBinary :p My first order of business will be to upd

Re: Re[2]: [Haskell] Simple and Easy Persistence

2005-12-08 Thread Krasimir Angelov
2005/12/8, Bulat Ziganshin <[EMAIL PROTECTED]>: > imho, it's better to start from NewBinary library and add features of > SerTH to it. i can make TH support. btw, where i can download > NewBinary version about you talk? there is many different variations. Thanks. Your help will be appreciable. I a

Re[2]: [Haskell] Simple and Easy Persistence

2005-12-08 Thread Bulat Ziganshin
Hello Krasimir, Thursday, December 08, 2005, 5:40:15 PM, you wrote: KA> the stream. What I want is to have a single Binary library that is KA> fast and that have all these features: KA> - fast implementation KA> - optional serialization of cyclic datastructures KA> - optional support for bit lev

Re: [Haskell] Simple and Easy Persistence

2005-12-08 Thread Krasimir Angelov
Hello Guys, I am looking at SerTH. The serialization of cyclic datastructures is quite useful feature but since I did some performance testing I found that it is too slow and consumes a lot of memory. It isn't surprising, since the cycles detection has extra overhead. I have changed the SerTH sour

Re: [Haskell] Simple and Easy Persistence

2005-12-08 Thread Matthew M. Munz
Donald, Shae, and Bulat, It sounds like Binary is the right tool for this job. Thanks for all of your helpful suggestions. - Matt On Dec 7, 2005, at 8:36 AM, Bulat Ziganshin wrote: Hello Matthew, Wednesday, December 07, 2005, 5:28:42 AM, you wrote: MMM>I have some program data t

Re: [Haskell] Simple and Easy Persistence

2005-12-07 Thread Bulat Ziganshin
Hello Matthew, Wednesday, December 07, 2005, 5:28:42 AM, you wrote: MMM>I have some program data that I'd like to persist. I could just there is 3 binary serialization packages for GHC: 1) GhcBinary, which is most widely used (including GHC compiler itself) and is close to be "standard de-

Re: [Haskell] Simple and Easy Persistence

2005-12-06 Thread Donald Bruce Stewart
I usually use the the Binary class, found in NewBinary for this task. You derive Binary for each type you wish to serialise, which gives you a get and put function on handles. A stripped down version suitable for many tasks lives here: http://www.cse.unsw.edu.au/~dons/code/hmp3/Binary.hs This

[Haskell] Simple and Easy Persistence

2005-12-06 Thread Matthew M. Munz
Hi all, I have some program data that I'd like to persist. I could just use read and show and file I/O to store arrays as files. [1] This works and it is easy and simple (which I like) but it is also inefficient and a little cumbersome. I imagine that this is a very common task, and