Weird Languages

August 2021

When programmers say that popular languages are effectively equivalent for their work, they may be identifying a useful constraint rather than exposing a failure of imagination. Software has to remain understandable to people who did not invent it.

Much programming connects existing libraries. The suggested figure of 99.5% is better understood as emphasis than a measurement. That work is not merely glue: choosing boundaries, handling failures, and preserving compatibility can demand more judgment than inventing a new notation.

Unusual abstractions can be intellectually rewarding. But the interesting fraction of programming is not automatically the fraction that benefits from an unusual language. Sometimes the hardest achievement is expressing a difficult idea in terms many people already share.

Good weird languages usually have reasons for their differences. Those reasons deserve examination, including the costs they move onto readers. A feature can save its author's time while requiring everyone else to learn a private conceptual system before making an ordinary change.

Consider Lisp macros. They allow programs to manipulate programs and support the technique of first designing a language for a class of problems, then writing an application in it. That is a real capability, not an illusion that ordinary library calls always reproduce conveniently. Yet the new language requires its own documentation, debugging practices, and conventions. Each reduction in repetitive source can increase the amount a maintainer must know before understanding a line. The unexplored space includes useful inventions, but also possibilities that have remained obscure because sharing them costs more than they save. Power for the writer is only one side of that calculation.

To expand your programming ability, first try explaining a difficult design in a language your collaborators know. Identify where its ordinary tools fail, then measure whether a new abstraction repays the learning it requires. Study weird languages when they answer that question, not because their users' intelligence makes weirdness a reliable signal of value. What matters is whether someone else can verify the program, repair it, and carry it forward after you leave. A language is not production-ready until it can explain why the printer is offline while standing next to it. [further confusion] Learning to make a previously difficult idea legible can enlarge thought just as surely as learning a notation in which only you can say it easily.







Original acknowledgments to Trevor Blackwell, Patrick Collison, Daniel Gackle, Amjad Masad, and Robert Morris for reading drafts of the original essay.


Japanese Translation