[Haskell-cafe] directory tree?

Chad Scherrer chad.scherrer at gmail.com
Mon Jun 25 17:42:18 EDT 2007


On 6/25/07, Stefan O'Rear <stefanor at cox.net> wrote:
> .z  : always pack
> .Z  : always compress
> .gz : always gzip
>
> gzip can handle all three, zlib only the last.  (Are you *sure* your
> file is compress?)

This means it's compress, doesn't it?

$ file myData.z
myData.z: compress'd data 16 bits

> > I could just tell the OS to start a gzip process, but I need to be
> > able to build it here on my Linux box, and run it on various MS
> > machines. Seems like the best approach at this point might be to
> > require everyone (only 3 people) to uncompress the data onto the hard
> > drive first, then go from there.
>
> Or could could reimplement compress in Haskell.  The algorithm is
> shockingly simple, and there is a sample implementation (needs
> optimization and compress(1) header support, but the LZW engine is
> there) is already on the Wiki.  Note that the patent expired in June
> '06, so you don't need to worry about that.
>
> http://haskell.org/haskellwiki/Toy_compression_implementations

This looks like a lot of fun, but I've got too many other pieces of
code to try to get running efficiently as it is. But I hadn't seen
this link before, and it looks like interesting stuff. Thanks!

Chad


More information about the Haskell-Cafe mailing list