at⋅a⋅rax⋅is

Project SHRDLU

In 1971, Terry Winograd1 wrote SHRDLU2 as his MIT dissertation. It was a natural language processing program that operated on a simulated world of blocks — you could tell it to pick up the red cube, ask it what was on top of the pyramid, and it would answer coherently. It was considered a landmark, and it remained one.

For one of my senior capstone projects at UMR, Prof. Carol Ann Smith3 commissioned a project: get SHRDLU working for demonstration and educational purposes. A team of six of us set out to port it from its original MacLisp implementation to Common Lisp. Matt Fischer led the project.4 The primary obstacle was that MacLisp and Common Lisp are not the same language in ways that matter — the special forms in particular require some archaeology. We emailed Terry Winograd.5 He wrote back. Kent Pitman6 — who had done serious work on exactly this translation problem — kindly sent us his notes.

flowchart TD Monitor Monitor --> Input Monitor --> Grammar Monitor --> Answer Input --> Dictionary Grammar <--> Semantics Grammar --> Dictionary Grammar --> PROGRAMMAR Semantics --> SemanticFeatures["Semantic Features"] Semantics --> Answer Semantics --> Blocks Semantics --> Planner Semantics --> Dictionary Answer --> Blocks Answer --> Mover Answer --> Planner Blocks --> Planner Blocks --> Data Mover --> Data

The dictionary is more interesting than the name suggests. Each word entry carries both its syntactic features and its semantic procedure inline. BALL doesn’t just say “this is a noun.” It carries semantic markers (#MANIP #ROUND) and a PLANNER procedure ((#IS *** #BALL)). Grammar and semantics read from the same word definitions, not separate data structures. That’s why the Grammar ↔ Semantics arrow is bidirectional: shared data, constant conversation.

CALLSM is the seam between them. The grammar calls it constantly, mid-parse. Semantic interpretation happens inline as the sentence is parsed, not as a separate second phase. That interleaving is a significant part of what made SHRDLU work.

PROGRAMMAR is a language-within-a-language. Winograd built a specialized grammar-writing language and wrote the grammar in it. progmr is the interpreter; the rules in gramar are its programs. Three levels: the Lisp runtime, PROGRAMMAR, and the grammar itself.

The debug infrastructure is notable for 1971. SMNTRACE, SMNBREAKS, breakpoints via ERT, all built in from the start. Someone expected to spend a long time inside this thing.

After my semester was over, the new project team pivoted to a Java rewrite. The source is probably gone. A few references still turn up online,7 which is more than most senior projects get.


  1. Terry’s home page ↩︎

  2. SHRDLU — Wikipedia ↩︎

  3. By coincidence, 1971 is the same year my Discrete Mathematics instructor joined the university. She became an emerita faculty member in 2003, and continued to teach through 2012. Dr Carol Smith - August 11, 1939 – July 30, 2021 ↩︎

  4. Matt Fischer, Ken Grant, Ted Verren, Erin Young, Josh Sutterfield, and me. ↩︎

  5. A few years later he was down the hall from me at Stanford. ↩︎

  6. @[email protected] ↩︎

  7. The original project page at acm.cs.umr.edu/shrdlu/ is preserved on the Wayback Machine. A successor project continued under web.mst.edu/~shrdlu after UMR became Missouri S&T, also archived. The Master Address File SHRDLU page documents both efforts. Two comp.lang.lisp threads: shrdlu, anyone? and working version of shrdlu. ↩︎