INTERCAL among the esoteric languages

INTERCAL is the oldest member of a small but persistent genre: the esoteric programming language (esolang). An esolang is designed not for production use but to make a point, usually about minimalism, parody, conceptual difficulty, or computational theory. INTERCAL invented the genre in 1972; the second wave arrived in the early 1990s; the genre is still active today.

What follows places INTERCAL alongside the other prominent esolangs and identifies what each contributes.

Brainfuck (1993)

Designed by Urban Müller, Brainfuck has eight commands: > < + - [ ] , .. It exposes a Turing-machine view of computation: a tape of cells, a data pointer, the four pointer-and-cell operations, and balanced bracket loops. A complete Brainfuck compiler fits in 240 bytes. Müller's original target, and implementations exist for almost every architecture.

Brainfuck's design philosophy is minimalism: how few primitives can you have and still be Turing-complete? The answer is six (the I/O can be omitted in a strict mathematical sense), and Brainfuck is an exhibit of that fact. Its I/O is byte-stream-oriented and convention-free.

INTERCAL contrasts with Brainfuck in every direction. Where Brainfuck has eight one-character commands, INTERCAL has dozens of multi-word verbs. Where Brainfuck eliminates almost all syntactic structure, INTERCAL adds extra structure (politeness, alternating brackets) on top of conventional procedural form. Brainfuck makes a point by minimising; INTERCAL makes a point by parodying.

Befunge (1993)

Chris Pressey designed Befunge as a two-dimensional language: code is laid out on a grid, and the instruction pointer can move in any of four cardinal directions. Branches are physical changes of direction. The language has stack-based arithmetic and Reverse Polish Notation expressions.

Befunge's contribution is spatial structure. Where Brainfuck makes computation linear and minimal, Befunge makes it geometric. A Befunge program is read as a 2D diagram, not a sequence of statements.

INTERCAL has no spatial structure at all, its programs are top-to-bottom statement lists. The two languages share the genre but explore different axes of unconventionality.

Malbolge (1998)

Ben Olmstead designed Malbolge to be as hard to program in as possible. Named after the eighth circle of hell in Dante's Inferno, it self-modifies its instructions on every step in a way that is very nearly impossible to reason about manually. The first "Hello, World!" in Malbolge took two years to produce, and it was generated by a search program rather than written by hand.

Malbolge's contribution is adversarial design. Where INTERCAL is hard to read because of its parodic features, Malbolge is hard to write at all because of its operational semantics. INTERCAL's difficulty is at the surface; Malbolge's difficulty is at the substrate.

Shakespeare Programming Language (2001)

Karl Hasselström and Jon Åslund's Shakespeare expresses programs as Shakespearean plays. Variables are characters, statements are dialogue lines, control flow is acts and scenes. A correct program reads as a coherent (if absurd) play.

Shakespeare's contribution is literary mimicry. The language extends INTERCAL's parodic intent, make programming look like something else, to literary form rather than just to syntactic form. Many similar languages followed (Chef, Whitespace, ArnoldC), but Shakespeare set the template.

INTERCAL parodies the conventions of programming-language design itself; Shakespeare parodies the boundary between programming and literature.

Whitespace (2003)

Edwin Brady and Chris Morris designed Whitespace to use only spaces, tabs, and newlines as significant tokens; every other character is ignored. This means a Whitespace program looks like an empty file or like an unformatted text document, but it is in fact a complete program.

Whitespace's contribution is invisibility. The language's source is, in any text editor, indistinguishable from blank space. The only way to read a Whitespace program is to render whitespace explicitly. INTERCAL's source is at least textually visible; Whitespace makes invisibility into a feature.

Where INTERCAL fits

INTERCAL is the oldest esolang, predating the genre by about twenty years. Brainfuck, Befunge, Malbolge, and Shakespeare are all from the 1990s and 2000s; they had INTERCAL as a precedent. The Esolang community wiki lists INTERCAL as the proto-example whenever someone asks "what is an esoteric language?".

Several traits make INTERCAL distinct within the genre:

FeatureINTERCALBrainfuckBefungeMalbolgeShakespeare
Year19721993199319982001
Design toneParodyMinimalismGeometricAdversarialLiterary
Instruction count~14 verbs8 commands~208~30 forms
VariablesNumbered, typedTape cellsStack-onlySelf-modifyingNamed characters
Control flowNEXT/RESUME/COME FROMBrackets2D directionSelf-modifyActs and scenes
I/ORoman+TTMByte streamByte streamByte streamNumeric
Self-hosted?Attempted (this project)Yes (many)Yes (rare)No (probably impossible)Not seriously
Compile-time checkPolitenessNoneNoneNoneVerse rules

The politeness rule is unique. The Turing Text Model is unique. The full named-symbol palette (sparks, rabbit-ears, tail, hybrid, big money, etc.) is unique. The combination of a strict 1972 specification with a small but persistent maintainer community is unique. INTERCAL has more conceptual surface than Brainfuck, less than Shakespeare, and a different orientation from any of them.

Why INTERCAL has aged well

Most early esolangs are no longer maintained. INTERCAL is. Three reasons:

  • It is short enough to specify in a few dozen pages, but rich enough to admit non-trivial implementations.
  • Its parodic posture has not dated. The conventions it ridicules are still recognisable today.
  • The maintainer community is small but persistent: three serious implementations (C-INTERCAL, CLC-INTERCAL, this one) have kept it in working condition since 1990.

Brainfuck and Befunge are similarly persistent. Malbolge and Whitespace less so, they made their point and the point was made. Shakespeare survives mostly as a teaching example.

What INTERCAL is not

It is not the most minimal esolang (Brainfuck is). It is not the hardest (Malbolge is). It is not the most literary (Shakespeare is). It is not the most novel in execution model (Befunge is). What it is, is the first and the most conceptually elaborate parody, the language that established the genre's conventions: parody as design intent, deliberately inconvenient features, a complete spec, a small maintainer community.

This is a useful position, and the reason the language is worth implementing fifty-plus years after its first compiler. Understanding INTERCAL is understanding the genre.

Further reading

The Esolang community maintains a comprehensive wiki at https://esolangs.org/. The 2014 talk by blinry, Esoteric Programming Languages, surveys the genre with examples; slides are linked in further-reading.md. Hillel Wayne's Brief Introduction to Esoteric Languages (https://www.hillelwayne.com/talks/esolangs/) is a more recent treatment.

For INTERCAL specifically, the resources in further-reading.md point to the original 1972 manual, the C-INTERCAL distribution, and the CLC-INTERCAL site.

Exercises

  1. Identify three features INTERCAL has that no other esolang in the table above shares. Are they superficial or load-bearing for the language's identity?
  2. Brainfuck is famously easy to compile (240 bytes for the original). Why is INTERCAL so much harder?
  3. The Shakespeare Programming Language uses character names as variables. Could INTERCAL be reformulated to use named variables instead of numbered ones? What would change in the spec?
  4. Malbolge has resisted self-hosting because its semantics are operationally adversarial. INTERCAL's barriers to self-hosting are different. List them.
  5. Suppose you wanted to design a new esolang in 2026. Which of INTERCAL's design choices would you copy, and which would you avoid?

Next reading