From: Jesse G. <je...@wi...> - 2004-07-23 20:29:50
|
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. -- 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 |