Coder Social home page Coder Social logo

LZMA support about decompress HOT 8 OPEN

mirage avatar mirage commented on May 29, 2024
LZMA support

from decompress.

Comments (8)

XVilka avatar XVilka commented on May 29, 2024 1

Here is the good reference in a closer (to OCaml) language (Rust) - https://github.com/gendx/lzma-rs/tree/master/src/decode

from decompress.

cfcs avatar cfcs commented on May 29, 2024

ocaml-lzma and most of the other "OCaml" libraries that deal with compression that I've encountered so far (apart from decompress) are simply thin bindings to C implementations, so it is not just a simple case of salvaging the old OCaml code; you have to rewrite the compression/decompression algorithms from scratch. :(

Do we have a list of use cases where a LZMA implementation could come in handy?

from decompress.

XVilka avatar XVilka commented on May 29, 2024

@cfcs I was using Ctypes bindings to the liblzma until I realized (by pain and blood) that xz-utils are not thread safe and crash all the time. Then I switch to writing OCaml bindings for LZMA SDK from 7zip, but those are a mess do deal with (mainly by API sense). I even searched for Rust implementation of LZMA (to wrap in OCaml bindings) but it turned out incomplete and unusable: https://github.com/meh/rust-lzma

from decompress.

cfcs avatar cfcs commented on May 29, 2024

Right, but where is LZMA needed?

from decompress.

XVilka avatar XVilka commented on May 29, 2024

This compression format is very popular.

from decompress.

dinosaure avatar dinosaure commented on May 29, 2024

I put it (a long time ago) in my TODO list. Currently, I need to finish some side projects but I will clearly take care about that soon precisely because I need:

  1. rewrite some parts of decompress
  2. make a release of it with gzip support
  3. optimize process

from decompress.

XVilka avatar XVilka commented on May 29, 2024

I have a simple bindings for 7-Zip SDK in OCaml, might be some source of information too, especially regarding some arcane peculiarities: https://github.com/XVilka/ocaml-lzma_7z

from decompress.

XVilka avatar XVilka commented on May 29, 2024

In case there will be some interest, there are some test files to check against: https://github.com/xz-mirror/xz/tree/master/tests/files

from decompress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.