From: Jesse G. <je...@wi...> - 2004-07-23 21:02:23
|
Nicolas Cannasse wrote: >>>>Hi list, >>>> >>>>This weekend I played a little with inflate algorithm, the >>>> >>>> >decompression > > >>>>algorithm described in RFC 1951 and which is used by most file formats >>>> >>>> >>>(zip, >>> >>> >>>>gz, jar, png, swf....). I rewrote it entirely from the RFC in pure >>>> >>>> >OCaml, > > >>>>and I think it could be nice to add it to ExtLib. >>>> >>>>The current implementation uses IO module and wrap an input : >>>> >>>>module Unzip >>>> >>>> >>>The Unzip module is now part of ExtLib ! >>>You can deflate your TGZ and ZIP with pure OCaml code only ! >>>Enjoy, >>> >>>Nicolas Cannasse >>> >>> >>Wow, that's cool. >> >>That reminds me: Is there any chance you might be interested in Dustin >>Sallings' pure OCaml CDB module? >> >>You can view the docs here: >> http://bleu.west.spy.net/~dustin/projects/ocaml/doc/Cdb.html >> >>And download it (along with some of Dustin's other modules) here: >> http://bleu.west.spy.net/~dustin/projects/ocaml/index.xtp >> >>The patch-71 release doesn't build on 3.08 due to the new Int >> >> >restrictions, > > >>but if you click "Changes" and download and apply patch-72 it will build >>fine. >> >>I use this code in a program I'm writing here at work. It's licensed >>under a BSD style license, but Dustin might be willing to release >>it under the LGPL. He's been very flexible with licensing in the past, >>but you'd have to ask. >> >>I've been extremely impressed with this module so far. We had some divide >>by zero problems which manifested under Linux and FreeBSD ( but not >>Dustin's primary development platform: OSX ) originally, but Dustin was >>quick to fix them, and it's really quite fast. >> >> > >Well, we've been talking before about adding a module in order to save >config or data informations in a persistent storage (such as a file) but we >couldn't agree on which was best. IMHO we need a hierarchical format with >some structural semantics and a minimum of typing , all of that storable in >an text only user editable format. XML would be enough even if not best >before it's widely use and easy to interface with other programming language >for data exchanges. I think CDB is not enough powerful - although >convenient - so that we reach an agreement on it. > >Regards, >Nicolas Cannasse > > > :) Well, I didn't suggest it because I think it's the end-all to data storage. I suggested it because it's useful. Python has a CDB module. OCaml normally ships with a DBM module, AFAIK. What's wrong with a little variety? -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net |