A PostScript to functional geometry

Peter Henderson's 1982 "Functional Geometry" is a classic paper that shows the beauty and power of functional representation. Using functions to represent pictures, Henderson defines a small set of combinators to create a replica of Escher's recursive tessellation "Square Limit". It's a nice kata for functional programmers.

However, you could also implement Henderson's combinators in concatenative languages, which excel at composition! In this talk, Einar shows us how. For choice of language, Einar turned to PostScript, a proven and battle-worn concatenative language that has been on the plateau of productivity for decades. It's also rather good for drawing. With one neat trick, values on the stack can be captured inside an executable array, to simulate closures. And the rest is easy.

OBJECTIVES

Learn how to do functional programming in a vintage concatenative language.

 

Upcoming conferences

Start booking your calendar with more Code Sync conferences happening across the globe. We will be slowly releasing more dates, in the meantime here is what we’ve planned already:

All conferences