DIFF is a simple text library which can compute unified-style or context-style diffs between two files. It also includes code to compute copy/insert deltas via the vdelta algorithm and encode those diffs in svndiff format. Other algorithms and encodings are planned for future versions. Version 0.4 includes a reader for "patch" files; an interface for applying patches is planned for future versions. Comments on the interface or wanted algorithms greatly appreciated.