John Lam 1997 — 2026

Richard Gabriel on Art in Programming

I spent some time reading some of Richard Gabriel’s writings this evening. Much like Paul Graham’s writing’s that draw parallels between painting and programming, Richard Gabriel’s writings draw parallels between poetry and programming.

One idea that caught my attention was the role that ambiguity plays in programming. He highlights the tension between being the desire to be well-defined and the desire for expressiveness. He uses polymorphism in object-oriented programming languages as an example:

However, polymorphism in object-oriented languages—especially those with extensive dynamic method-dispatch support—is an example of the use of (seemingly) ill-defined expressions for great expressive power. One could argue that a method-call is really quite well defined because, after all, only one class or object is chosen to respond, but the programmer in writing the method call cannot tell which piece of code that will be, so that it is sensible to think of the programmer as using ambiguity at code-writing time to gain clarity at code-execution time. In this sense, the artistic notion of ambiguity has at least inspired a breakthrough in programming language design.

He mentions aspect-oriented programming in passing as well. I wonder if my (current) bias against AOP is the result of my preference for well-defined behavior over expressiveness. I wonder if my current infatuation with Python might lead me down some new roads of thought as well …