mathr / blog / #

hp2pretty-0.2 released (6 weeks ago)

hp2pretty v0.2 2010-07-30 leaner and meaner

Memory usage and speed have both been improved, in part by reading the entire file into a strict ByteString and making two parsing passes over it, where the first pass accumulates statistics and the second pass extracts the relevant data to arrays, thus avoid large intermediate data structures.

Code abtraction has been improved, by separating the SVG code into its own module and providing a Graphics interface, so that later a PostScript implementation can be added more easily.

Source code statistics: 475 lines, 2854 words, 17007 chars.

Download hp2pretty-0.2.tar.gz, or install from Hackage:

cabal install hp2pretty

or you can get the latest development source from hp2pretty/hp2pretty on Gitorious hp2pretty on