-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xz decompressor #2851
Comments
xz is a nice algorithm, but zstd got close while having many other use-cases for fast compression too. This is because zstd uses finite state entropy, which is quite new. |
Although zstd is preferred these days; we still need XZ to support e.g. compressed debug info https://sourceware.org/gdb/onlinedocs/gdb/MiniDebugInfo.html, unless gdb and other common utilities are changing any time soon? |
@daurnimator note that LZMA is similar, but not the same as XZ (they are both supported by liblzma2). (LZMA was the beta version, that because become so widely used, the final version got a different name.) I really don't see why we can't just build the C version, and use that. |
@ofelas would you like to make that into a PR to the standard library? |
And his response should be to add a license to his repository. GitHub has a
good page on choosing a license (I this in this case only BSD-2/3 or MIT
would be acceptable) which I would link to if I was connected to internet.
El jue., 26 sept. 2019 8:19, Vesa Kaihlavirta <notifications@github.com>
escribió:
… Since that code/rope doesn't have any license information, @ofelas
<https://github.com/ofelas> should probably be contacted whether it's ok
to just add that to Zig.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2851?email_source=notifications&email_token=AAD4W4SYU7NCJ2HCDOI7T73QLSSEXA5CNFSM4H65FTA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7VLSOI#issuecomment-535476537>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAD4W4UVLWFFQQU5CZCK3SDQLSSEXANCNFSM4H65FTAQ>
.
|
I added a LICENSE file (MIT) as the original Rust code has in case anyone wants to use said code. |
@daurnimator I could either prepare and clean up the code linked above or write the implementation by hand using liblzma2 as a reference. |
@tetsuo-cpp I'm also willing to give this a try. Did you make any progress? |
@alexpana |
Hi, I would like to give this a try, has some progress been made on that? |
User squirl on discord: I'm not familiar with the details of zstd though so it may be too complex to include in std - in that case I'd recommend lzip, which is simpler and more efficient than xz, while also solving its reliability issues" Main issue I see is that the reference implementation is GPLv2 and the public domain one "hopefully compliant" https://www.nongnu.org/lzip/pdlzip.html, which makes me wonder if the spec is ambiguous or if there are too few test cases etc. |
I dont think its useful to add all the compatibility boilerplate on top of lzip, if distros are switching to zstd https://en.wikipedia.org/wiki/XZ_Utils. |
Note that lzip uses LZMA, which @daurnimator mentions is needed anyway for parsing compressed debug info, so using lzip over zstd could provide a benefit in terms of code reuse. |
xz is a lossless compression program and file format which incorporates the LZMA/LZMA2 compression algorithms.
Useful for:
Related to:
The text was updated successfully, but these errors were encountered: