www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Adding liblzma bindings to phobos?

reply Johannes Pfau <spam example.com> writes:
=46rom the xz-utils Homepage:
-----------------------------------
The core of the XZ Utils compression code is based on LZMA SDK, but it
has been modified quite a lot to be suitable for XZ Utils. The primary
compression algorithm is currently LZMA2, which is used inside the .xz
container format. With typical files, XZ Utils create 30 % smaller
output than gzip and 15 % smaller output than bzip2.

XZ Utils consist of several components:
[...]
liblzma is a compression library with API similar to that of zlib.
-----------------------------------

lzma compression is used in .7z .tar.lzma and .tar.xz files.

I've written bindings for this liblzma library, so I'd like to know if
there's interest in including liblzma bindings in phobos.

The bindings are here:
https://github.com/jpf91/lzmad
API docs:
http://jpf91.github.com/lzmad/api/lzma.html

liblzma is public domain, so it could even be shipped with phobos, if
desired. Pre-compiled windows dlls are also available.
--=20
Johannes Pfau
Jul 17 2011
parent Andrew Wiley <wiley.andrew.j gmail.com> writes:
On Sun, Jul 17, 2011 at 3:24 AM, Johannes Pfau <spam example.com> wrote:

 From the xz-utils Homepage:
 -----------------------------------
 The core of the XZ Utils compression code is based on LZMA SDK, but it
 has been modified quite a lot to be suitable for XZ Utils. The primary
 compression algorithm is currently LZMA2, which is used inside the .xz
 container format. With typical files, XZ Utils create 30 % smaller
 output than gzip and 15 % smaller output than bzip2.

 XZ Utils consist of several components:
 [...]
 liblzma is a compression library with API similar to that of zlib.
 -----------------------------------

 lzma compression is used in .7z .tar.lzma and .tar.xz files.

 I've written bindings for this liblzma library, so I'd like to know if
 there's interest in including liblzma bindings in phobos.

 The bindings are here:
 https://github.com/jpf91/lzmad
 API docs:
 http://jpf91.github.com/lzmad/api/lzma.html

 liblzma is public domain, so it could even be shipped with phobos, if
 desired. Pre-compiled windows dlls are also available.
 --
 Johannes Pfau
I would find it useful.
Jul 18 2011