Smalltalk

term

programming

Kept in this browser · My desk

The language of Alan Kay, Dan Ingalls, Adele Goldberg and the Learning Research Group at Xerox Palo Alto Research Center (PARC), from Smalltalk-72 to the release version Smalltalk-80, built entirely of objects that exchange messages.

Kay dedicates his history to Sketchpad, JOSS, Lisp and Simula, and writes that Smalltalk's contribution was "a new design paradigm, which I called object-oriented".

What it is. Smalltalk is the language that Alan Kay, Dan Ingalls, Adele Goldberg and the Learning Research Group built at the Xerox Palo Alto Research Center (PARC) from Smalltalk-72 to the release version Smalltalk-80, a language and a whole environment made entirely of objects that exchange messages. In Smalltalk every value is an object that hides its state and process and can be dealt with "only through the exchange of messages"; Kay compares the result to "thousands and thousands of computers all hooked together by a very fast network".

Where it came from. Kay's The Early History of Smalltalk (History of Programming Languages II, 1993) dedicates the work to Sketchpad, JOSS, Lisp and Simula, and traces a line from the FLEX machine of 1967 to 1969 and the Dynabook, a handheld personal computer for children and adults, to Xerox PARC from 1970. The language started with a boast. Kay asserted that "the most powerful language in the world" could be defined in "a page of code", because McCarthy's self-describing Lisp interpreter was about a page; challenged to "put up or shut up", he spent two weeks at PARC "every morning at four o'clock" until eight writing it. Smalltalk-72, the first real Smalltalk, followed.

The six ideas. By the early 1970s Smalltalk's design had settled into six ideas, as Kay lists them: everything is an object; objects communicate by sending and receiving messages; objects have their own memory; every object is an instance of a class, itself an object; the class holds the shared behaviour of its instances; and evaluation passes control to the first object of a program list, the rest being its message. Kay wrote that the contribution was "a new design paradigm, which I called object-oriented", and that the group was "trying for a qualitative shift in belief structures".

The principles in public. Dan Ingalls set the design out for a general audience in BYTE in August 1981, Design Principles Behind Smalltalk. Personal mastery: "If a system is to serve the creative spirit, it must be entirely comprehensible to a single individual." Messages: "Computing should be viewed as an intrinsic capability of objects that can be uniformly invoked by sending messages." A uniform metaphor, as Lisp had with lists. The Reactive Principle: "Every component accessible to the user should be able to present itself in a meaningful way for observation and manipulation." And a provocation about operating systems: "An operating system is a collection of things that don't fit into a language. There shouldn't be one."

Smalltalk-80 and its virtual machine. Adele Goldberg and David Robson's Smalltalk-80: The Language and its Implementation (Addison-Wesley, 1983, copyright Xerox) published the language with a complete specification of its virtual machine: the interpreter, the object memory and the stack, jump, send and return bytecodes. Smalltalk was therefore portable in the same way as Pascal-P and later Java: implement the virtual machine once, and the whole image of objects runs.

Today. The language continues in open-source descendants. Pharo describes itself as "a minimal, elegant, pure, reflective object language (and fully open-source)", in which "everything is an object, without exception", the syntax fits on a postcard, and programmers "often write code directly in the debugger". Smalltalk named the paradigm that C++, Java, Python and Ruby later adopted, and its environment pioneered the overlapping windows of graphical interfaces.

What goes wrong. Smalltalk's strengths are also why it stayed a niche: the program lives in an image rather than in files, which suits exploration and complicates version control and deployment; everything is late-bound, which costs speed and lets errors appear only when a message is sent; and the idea most other languages borrowed was the class, while Kay's emphasis was on messages.

Neighbours. Smalltalk descends from Simula and Lisp, gave the object-oriented programming paradigm its name, ran on bytecode, and is the work of Alan Kay's group at Xerox PARC. Brazilian practice says Smalltalk.

Also known as: smalltalk-80, smalltalk-72

← Back to S Back to the glossary