This is a Lua binding for BriefLZ – a small and fast open source implementation of a Lempel-Ziv style compression algorithm by Joergen Ibsen.
You can install BriefLZ using LuaRocks (the Lua package manager):
luarocks install brieflz
or to get the latest development version:
luarocks install --server=http://luarocks.org/dev brieflz
Tip: If you want to bootstrap development environment for running tests, read the next section.
Note
|
If you have an old gcc version you may encounter error: vendor/brieflz/src/brieflz.c: In function ‘blz_pack’: vendor/brieflz/src/brieflz.c:466:2: error: ‘for’ loop initial declarations are only allowed in C99 mode for (unsigned long i = 0; i < LOOKUP_SIZE; ++i) { ^ In that case you have to explicitly enable C99 mode when installing brieflz:
|
-
Clone this repository:
git clone https://github.com/jirutka/brieflz.lua.git cd brieflz.lua
-
Install Lua and modules for running tests into directory
.venv
:./script/bootstrap
-
Start hacking!
-
Build native extension:
./script/build
-
Run tests and linter:
./script/test
This project is licensed under zlib License. For the full text of the license, see the LICENSE file.