A Critic for LISP

Gerhard Fischer

Abstract

High-functionality computer systems often present a usability gap where users utilize only a small fraction of available features. This "production paradox" occurs because the perceived cost of learning more efficient methods outweighs the immediate benefit of task completion. This paper describes LISP-CRITIC, an intelligent support system designed to facilitate "learning on demand." By monitoring user activity and offering context-sensitive critiques, LISP-CRITIC helps programmers move beyond behavioral plateaus toward expert-level proficiency.

Introduction: The Production Paradox

In the late 1980s, the complexity of development environments like the Symbolics LISP Machine—with tens of thousands of functions and thousands of pages of documentation—created a significant barrier to mastery. Most users fall into the "production paradox": they are too focused on immediate results to invest time in learning the "right" way to use the system. Consequently, even experienced developers often rely on a limited, suboptimal subset of the language.

Traditional help systems are often passive, requiring users to know exactly what to ask. LISP-CRITIC addresses this by acting as an active participant that volunteers relevant information at the moment it is most useful.

System Architecture and Methods

LISP-CRITIC is built upon a "critiquing model" rather than a traditional "consultation model." In a consultation model, the system drives the interaction; in a critiquing model, the user remains in control while the system provides feedback in the background.

The conceptual architecture of the LISP-CRITIC system, showing the integration of critics, visualization, and instructional components.

The system comprises several key technical components:

  1. Transformation Rules: Over 200 rules perform pattern matching to suggest improvements for both "cognitive efficiency" (readability) and "machine efficiency" (performance).
  2. User Modeling: The system tracks which rules are triggered and which functions are used, allowing it to tailor advice to the user's specific expertise level.
  3. KAESTLE (Visualization Tool): A "software oscilloscope" that visualizes data structures to explain the rationale behind specific suggestions, such as the implications of using destructive vs. non-destructive functions.

The Critiquing Model in Practice

The core of the system is its ability to provide immediate, actionable feedback. When a user writes code that matches a known suboptimal pattern, the critic suggests a transformation.

The LISP-CRITIC interface displaying original code alongside suggested improvements for better readability and efficiency.

For example, the system might suggest replacing (not (evenp a)) with (oddp a) or replacing a sequence of car and cdr calls with a more concise cadr. This "learning on demand" approach ensures that information is delivered within a "situation model" that the user already understands, rather than as an abstract "system model."

Key Insights and Results

The evaluation of LISP-CRITIC yielded several significant insights:

  • Incremental Learning: Studies of LISP students showed that the frequency of rule firing decreased over time, indicating that users were internalizing the critic's advice.
  • Expert Utility: Even expert programmers found the tool useful for refactoring and "straightening out" code during active development.
  • Lowering Learning Costs: By providing suggestions directly within the workflow, the system reduces the subjective cost of learning new commands to near zero.

Conclusion

LISP-CRITIC demonstrates that intelligent support systems can effectively mitigate the production paradox. By focusing on augmenting human intelligence rather than replacing it, the system provides a pathway for users to continuously improve their skills while remaining productive. Future work aims to extend these concepts to more restricted domains where user goals can be more easily inferred.

Summary updated

BibTeX
@inproceedings{fischer1987critic,
  author = {Gerhard Fischer},
  title = {{A Critic for LISP}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1987},
}
Figure