std.sevenzip - Do you need it?

FG via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 30 12:44:36 PST 2015


On 2015-01-30 at 20:39, H. S. Teoh via Digitalmars-d wrote:
> OTOH, wouldn't a clean-room reimplementation of it be permissible? (And
> perhaps even desirable, since it can then take advantage of D instead of
> just wrapping around C/C++ code?)

Maybe clean-room won't be necessary. We were looking in the wrong place. There is http://www.7-zip.org/sdk.html - which is in public domain, and contains LZMA, LZMA2, and XZ compression and decompression algorithms in C, plus a C/C++ minimal utility for handling 7z files. It probably doesn't handle encryption and definitely doesn't cover other archive formats supported by 7-zip (the application).

Well, screw RAR, because no-one is allowed to write a compressor anyway, but add support for TAR and perhaps BZIP2 and we should be quite happy. And, if someone was willing to implement DEFLATE, even using zlib wouldn't be required any more (which some don't like, as mentioned below). :)


On 2015-01-30 at 21:34, Brad Anderson wrote:
> As other said, the license is an issue but even if it weren't people are pretty opposed to including third party libraries in Phobos these days. The inclusion of zlib and (especially) curl are often considered a mistake.
>
> I'm mostly of the opinion that we should be relying less on Phobos and more on dub going forward. sevenzip would be a great addition to the dub registry.


More information about the Digitalmars-d mailing list