Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.25 KB

README.md

File metadata and controls

39 lines (25 loc) · 1.25 KB

hu.dwim.zlib

What

A Common Lisp FFI for zlib (which is a compression library for deflate and gzip written in C).

Why

It uses CFFI/C2FFI to automatically generate the CFFI definitions, so it's a complete interface based on the C header files.

zlib's gzip format can be used for compressing HTTP responses to browsers.

Who

Written by [email protected].

Where

The primary communication channel is the facilities on the project's GitHub page.

Status

The raw FFI part is almost complete (except some va_list stuff).

No fancy lispy overlay API has been added; it seems to be convenient enough without it.

It's used in hu.dwim.web-server to compress HTTP responses.

It has a test that compresses and decompresses random data in random zlib configurations, and it doesn't yield any errors for me when run for minutes (besides some zlib peculiarities/bugs that are avoided by the test code).