← Files ISA-L ZipARCHIVED FILE
README.md
3.28 KB · Nov 30, 2026 · 00:22 UTC
# ISA-L Zip Copyright (c) 2026 Tarek Wasfy. Licensed under MIT. See [LICENSE](LICENSE). ISA-L Zip is a native Go command-line tool with Intel ISA-L compiled from its original C and NASM sources. The Windows and Linux executables are native Go/CGo binaries; they do not embed Python. ZIP files use standard DEFLATE method 8, so common ZIP tools can read them. ## Included - `skills/isa-zip/bin/windows-x64/isa-zip.exe`: native Windows x64 executable. - `skills/isa-zip/bin/linux-x64/isa-zip`: statically linked Linux x86_64 executable (musl target). - `native/cmd/isa-zip/`: Go CLI source for pack, inspect, extract and benchmark. - `native/isal/`: small CGo bridge calling Intel ISA-L's raw DEFLATE API. - `native/build/cc-wrapper/` and `build-support/build-native.ps1`: cross-build support. - `third_party/isa-l-master-source.zip`: complete supplied Intel ISA-L source snapshot. - `third_party/licenses/`: Intel ISA-L BSD-3-Clause and Go runtime BSD-3-Clause notices. ## Usage ```text isa-zip pack output.zip ./folder isa-zip inspect output.zip isa-zip extract output.zip ./restored isa-zip extract output.zip ./restored --overwrite isa-zip benchmark ./large-file.bin ``` Use `isa-zip --help` for usage. Pack writes only a new destination and refuses to overwrite. Inspect and extract read CRCs; extract rejects traversal and backslash paths, symlink entries, case-colliding paths, reserved Windows names and archives over 100,000 entries or 20 GiB expanded. Extraction validates the full entry list first, writes into a same-filesystem staging directory, verifies CRCs and sizes before commit, and rolls back files it committed if a later filesystem operation fails. This protects against malformed archives and ordinary errors. It does not claim protection against a hostile process concurrently changing destination directories during extraction; use a destination directory not writable by untrusted processes. ## Compression implementation and limits Go's standard `archive/zip` handles ZIP structure and CRC. The registered method-8 compressor calls Intel ISA-L C (`isal_deflate_stateless`, level 1). Decompression uses Go's standard DEFLATE reader. The present CGo adapter buffers one file in memory until ZIP close; memory use grows with each input file. The ISA-L API also limits a single compressed input/output buffer to 32-bit lengths. Benchmark compares ISA-L C with Go's standard flate for that one workload. No fixed speedup is claimed. ## Build The native cross-build uses Go with CGo, Zig's C cross-compiler, NASM and CMake/Ninja. On Windows with Visual Studio CMake/Ninja installed and `zig` and `nasm` on PATH (or supplied by full paths): ```powershell ./build-support/build-native.ps1 -ZigPath C:\tools\zig\zig.exe -NasmPath C:\tools\nasm\nasm.exe -CMakePath C:\tools\cmake\bin\cmake.exe -NinjaPath C:\tools\ninja\ninja.exe ``` This compiles Intel ISA-L for Windows x64 and Linux x86_64-musl from the included C/NASM source, runs Go tests on Windows, then creates both executables. Linux runtime tests must be run on a Linux host; cross-compiling alone does not prove execution there. Build tools are not included in the submission ZIP. ## Scope This skill routes local ZIP work to the packaged executable. It cannot access files that exist only in a remote browser/chat sandbox, and it cannot force invocation on every turn.
SHA-256: 39fae44a0ca0180748ab5e8f67d075669fed2ea410022396c2f27e23ca157f7d