Some Postscript Hacks

I was reading Sedgewick's Algorithms in C book, and the chapter that dealt with postfix notation used postscript for some examples. I was interested, and played around a bit. It's an interesting puzzle forcing your mind to think in reverse-polish notation.

Here's an example that draws some iterations of a Koch fractal:
koch.ps


Back to my programming page