Re: Factor

Factor: the language, the theory, and the practice.

UU Encoding

Tuesday, December 10, 2013


Just a quick note, as of a couple months ago, Factor has support for uuencoding (and uudecoding)!

You can perform a uuencode:

IN: scratchpad "Factor" string>uu print

…and also a uudecode:

IN: scratchpad """
               begin 644 factor.txt
               """ uu>string .

Right now, it operates on text directly and doesn’t preserve the file name and permissions in the begin header, but that would be an easy improvement.

The code for this is available in the development version of Factor.