hu.dwim.zlib

2022-07-08

Common Lisp FFI wrapper for zlib, aka http://zlib.net/

Upstream URL

github.com/hu-dwim/hu.dwim.zlib

Author

Attila Lendvai, Tamás Borbély <tomi.borbely@gmail.com>, Attila Lendvai <attila.lendvai@gmail.com>, Levente Mészáros <levente.meszaros@gmail.com>

License

BSD or Bugroff
README

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 attila@lendvai.name.

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).

Dependencies (6)

  • alexandria
  • cffi
  • hu.dwim.asdf
  • hu.dwim.def
  • hu.dwim.stefil
  • hu.dwim.syntax-sugar

Dependents (1)

  • GitHub
  • Quicklisp