Saturday, 23 May 2009

Pretty printing with the Format module and Camlp4 stream parsers

The OCaml Journal just published an article about pretty printing and parsing:

"The OCaml programming language has evolved a rich variety of libraries and tools over the past thirteen years. The domain of metaprogramming is particularly well supplied. This article describes the basic design of OCaml's Format module which provides customizable formatting and, in particular, user-extensible pretty printing for the top-level as well as the stream parsers provided by camlp4..."

To read this article and more, subscribe to The OCaml Journal today!

Saturday, 9 May 2009

Lempel-Ziv-Welch data compression

The OCaml Journal just published an article about data compression:

"LZW is a simple and effective dictionary-based data compression algorithm originally published in 1984 and subsequently used in several prominent places including the GIF image format. This article describes simple purely functional implementations of the compression and corresponding decompression algorithms before examining the optimization of these implementations via the selective inclusion of mutable data structures..."

To read this article and more, subscribe to The OCaml Journal today!