Saturday, September 06, 2008

Announce: cl-bzip2 0.1.0

Last Saturday I released version 0.1.0 of cl-bzip2. The project is hosted at Its homepage is

cl-bzip2 provides Common Lisp bindings (via CFFI) for libbzip2 — the C library for bzip2 compression/decompression. It provides an easy to use Lisp inteface for the same:

;;; Compression
;;; No values are returned if execution was successful
CL-USER> (bzip2:compress #p"test.txt" #p"test.txt.bz2")
; No value

;;; Decompression
CL-USER> (bzip2:decompress #p"test.txt.bz2" #p"test.txt")
; No value

;;; Using binary streams
CL-USER> (with-open-file (in "test.txt"
:direction :input
:element-type '(unsigned-byte 8))
(with-open-file (out "test.txt.bz2"
:direction :output
:element-type '(unsigned-byte 8))
(bzip2:compress in out)))
; No value

Hope someone finds it useful. If you have any suggestions for the Lisp API, please let me know (or drop in a mail to the mailing list).

Labels: , ,

Thank you sir, for the information but this is all hebrew to me!
Hehe, sorry mate. Trying to revive this blog now -- if you ever see Lisp in the article (which is what you will see mostly), just ignore it.

Post a Comment

Subscribe to Post Comments [Atom]

<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]