gnuvince•

Here I thought someone had created a Common Lisp macro to create lattes.

4
Zarutian•

Recipie: Hook up an Symbolics clone up to Philips multi drink dispenser. Next write hardware interface procedures. Then write the macro for creating lattes and volta! you have what you asked for,

1
edwardkmett•

For those who prefer code:

I've written a very simple implementation of LZ78 that I use to minimize redundant computations over a stream of values.

http://comonad.com/haskell/monoids/dist/doc/html/monoids/Data-Generator-Compressive-LZ78.html

I mention it because the compressor and decompressor each come down to just a few lines.

LZ78 is a precursor to LZW, LZW pre-loads the dictionary with the all possible characters, which means you only have to encode one type of value in the output stream, while LZ78 adds them as it goes, so you need to emit slot/character pairs.

This balance usually works LZW's favor, but for my purposes some times I don't have a 'bounded' symbol set, so I implemented LZ78 instead.

1