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:
--0016e68e91963695ce04a862bfa2
Content-Type: text/plain; charset=ISO-8859-1

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

--0016e68e91963695ce04a862bfa2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div class=3D"gmail_quote">On Sun, Jul 17, 2011 at 3:24 AM, Johannes Pfau <= span dir=3D"ltr">&lt;<a href=3D"mailto:spam example.com">spam example.com</= a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0= 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
From the xz-utils Homepage:<br>

The core of the XZ Utils compression code is based on LZMA SDK, but it<br> has been modified quite a lot to be suitable for XZ Utils. The primary<br> compression algorithm is currently LZMA2, which is used inside the .xz<br> container format. With typical files, XZ Utils create 30 % smaller<br> output than gzip and 15 % smaller output than bzip2.<br> <br> XZ Utils consist of several components:<br> [...]<br> liblzma is a compression library with API similar to that of zlib.<br> -----------------------------------<br> <br> lzma compression is used in .7z .tar.lzma and .tar.xz files.<br> <br> I&#39;ve written bindings for this liblzma library, so I&#39;d like to know= if<br> there&#39;s interest in including liblzma bindings in phobos.<br> <br> The bindings are here:<br> <a href=3D"https://github.com/jpf91/lzmad" target=3D"_blank">https://github= .com/jpf91/lzmad</a><br> API docs:<br> <a href=3D"http://jpf91.github.com/lzmad/api/lzma.html" target=3D"_blank">h= ttp://jpf91.github.com/lzmad/api/lzma.html</a><br> <br> liblzma is public domain, so it could even be shipped with phobos, if<br> desired. Pre-compiled windows dlls are also available.<br> --<br> <font color=3D"#888888">Johannes Pfau<br> <br></font></blockquote><div><br></div><div>I would find it useful.=A0</div=
</div><br>

--0016e68e91963695ce04a862bfa2--
Jul 18 2011