Over the past few months, I’ve been writing code to create DaisyWriter control code from this algorithmic typewriter art algorithm (academic paper is in the GitHub repo). It wasn’t as trivial as it sounds!

Through removing some unnecessary code for my purposes and adding parallelism, I’ve been able to speed up the algorithm from days to hours. Creating a full-page image takes now approximately 6-8 hours and over 24GB of RAM. I believe I can get it faster, but not without substantial changes or a rewrite.

Converting the output of this algorithm to the DaisyKey protocol involved a lot of trial and error. The documentation, sadly, is not entirely clear and I needed to write commands directly to the printer to see how it reacts. My code outputs a file that can be copied directly to LPT1 in DOS.

Perhaps I’ll write more on this later, but for now, enjoy the attached scan of a printed image!