Information Processing Language

Short description: Early programming language for lists

Information Processing Language (IPL)Paradigm| Assembly

|

Designed by| Allen Newell, Cliff Shaw, Herbert A. Simon
Developer| Allen Newell, Cliff Shaw, Herbert A. Simon
First appeared| 1956; 70 Years Ago
Stable release|

IPL-V

OS| Cross-platform: JOHNNIAC, IBM 650, IBM 704, IBM 7090
Influenced
Lisp

Information Processing Language (IPL) is a programming language created by Allen Newell, Cliff Shaw, and Herbert A. Simon at RAND Corporation and the Carnegie Institute of Technology about 1956. Newell had the job of language specifier-application programmer, Shaw was the system programmer, and Simon had the job of application programmer-user.

IPL included features to facilitate AI programming, specifically problem solving. such as lists, dynamic memory allocation, data types, recursion, functions as arguments, generators, and cooperative multitasking. IPL also introduced the concepts of symbol processing and list processing. Unfortunately, all of these innovations were cast in a difficult assembly-language style. Nonetheless, IPL-V (the only public version of IPL) ran on many computers through the mid 1960s.

## Contents

* 1 Basics of IPL
* 2 History
* 3 Legacy to computer programming
* 4 References
* 5 Sources
* 6 Further reading
* 7 External links

## Basics of IPL

An IPL computer has:

1. A set of symbols. All symbols are addresses, and name cells. Unlike symbols in later languages, symbols consist of a character followed by a number, and are written H1, A29, 9–7, 9–100.
1. Cell names beginning with a letter are regional, and are absolute addresses.
2. Cell names beginning with "9-" are local, and are meaningful within the context of a single list. One list's 9-1 is independent of another list's 9–1.
3. Other symbols (e.g., pure numbers) are internal.
2. A set of cells. Lists are made from several cells including mutual references. Cells have several fields:
1. P, a 3-bit field used for an operation code when the cell is used as an instruction, and unused when the cell is data.
2. Q, a 3-valued field used for indirect reference when the cell is used as an instruction, and unused when the cell is data.
3. SYMB, a symbol used as the value in the cell.
3. A set of primitive processes, which would be termed primitive functions in modern languages.

The data structure of IPL is the list, but lists are more intricate structures than in many languages. A list consists of a singly linked sequence of symbols, as might be expected—plus some description lists, which are subsidiary singly linked lists interpreted as alternating attribute names and values. IPL provides primitives to access and mutate attribute value by name. The description lists are given local names (of the form 9–1). So, a list named L1 containing the symbols S4 and S5, and described by associating value V1 to attribute A1 and V2 to A2, would be stored as follows. 0 indicates the end of a list; the cell names 100, 101, etc. are automatically generated internal symbols whose values are irrelevant. These cells can be scattered throughout memory; only L1, which uses a regional name that must be globally known, needs to reside in a specific place.

IPL-V List Structure Example  Name | SYMB | LINK

|
|

L1 | 9-1 | 100
100 | S4 | 101
101 | S5 | 0
9-1 | 0 | 200
200 | A1 | 201
201 | V1 | 202
202 | A2 | 203
203 | V2 | 0

IPL is an assembly language for manipulating lists. It has a few cells which are used as special-purpose registers. H1, for example, is the program counter. The SYMB field of H1 is the name of the current instruction. However, H1 is interpreted as a list; the LINK of H1 is, in modern terms, a pointer to the beginning of the call stack. For example, subroutine calls push the SYMB of H1 onto this stack.

H2 is the free-list. Procedures which need to allocate memory grab cells off of H2; procedures which are finished with memory put it on H2. On entry to a function, the list of parameters is given in H0; on exit, the results should be returned in H0. Many procedures return a Boolean result indicating success or failure, which is put in H5. Ten cells, W0-W9, are reserved for public working storage. Procedures are "morally bound" (to quote the CACM article) to save and restore the values of these cells.

There are eight instructions, based on the values of P: subroutine call, push/pop S to H0; push/pop the symbol in S to the list attached to S; copy value to S; conditional branch. In these instructions, S is the target. S is either the value of the SYMB field if Q=0, the symbol in the cell named by SYMB if Q=1, or the symbol in the cell named by the symbol in the cell named by SYMB if Q=2. In all cases but conditional branch, the LINK field of the cell tells which instruction to execute next.

IPL has a library of some 150 basic operations. These include such operations as:

* Test symbols for equality
* Find, set, or erase an attribute of a list
* Locate the next symbol in a list; insert a symbol in a list; erase or copy an entire list
* Arithmetic operations (on symbol names)
* Manipulation of symbols; e.g., test if a symbol denotes an integer, or make a symbol local
* I/O operations
* "Generators", which correspond to iterators and filters in functional programming. For example, a generator may accept a list of numbers and produce the list of their squares. Generators could accept suitably designed functions—strictly, the addresses of code of suitably designed functions—as arguments.

## History

IPL was first utilized to demonstrate that the theorems in Principia Mathematica which were proven laboriously by hand, by Bertrand Russell and Alfred North Whitehead, could in fact be proven by computation. According to Simon's autobiography Models of My Life, this application was originally developed first by hand simulation, using his children as the computing elements, while writing on and holding up note cards as the registers which contained the state variables of the program.

IPL was used to implement several early artificial intelligence programs, also by the same authors: the Logic Theorist (1956), the General Problem Solver (1957), and their computer chess program NSS (1958).

Several versions of IPL were created: IPL-I (never implemented), IPL-II (1957 for JOHNNIAC), IPL-III (existed briefly), IPL-IV, IPL-V (1958, for IBM 650, IBM 704, IBM 7090, Philco model 212, many others. Widely used). IPL-VI was a proposal for an IPL hardware.[1][2][3]

A co-processor “IPL-VC” for the CDC 3600 at Argonne National Libraries was developed which could run IPL-V commands.[4][5] It was used to implement another checker-playing program.[6] This hardware implementation did not improve running times sufficiently to “compete favorably with a language more directly oriented to the structure of present-day machines”.[7]

IPL was soon displaced by Lisp, which had much more powerful features, a simpler syntax, and the benefit of automatic garbage collection.

## Legacy to computer programming

IPL arguably introduced several programming language features:

* List manipulation—but only lists of atoms, not general lists
* Property lists—but only when attached to other lists
* Higher-order functions—while assembly programming had always allowed computing with the addresses of functions, IPL was an early attempt to generalize this property of assembly language in a principled way
* Computation with symbols—though symbols have a restricted form in IPL (letter followed by number)
* Virtual machine

Many of these features were generalized, rationalized, and incorporated into Lisp[8] and from there into many other programming languages during the next several decades.

## References

1. ↑ This article is based on material taken from Information+Processing+Language at the Free On-line Dictionary of Computing prior to 1 November 2008 and incorporated under the "relicensing" terms of the GFDL, version 1.3 or later.
2. ↑ Shaw et al. 1958.
3. ↑ Sammet 1969, p. 389.
4. ↑ Hodges 1964.
5. ↑ Sammet 1969, p. 393–394.
6. ↑ Cowell & Reed 1965.
7. ↑ Carson & Robinson 1966, p. 5.
8. ↑ John McCarthy (1979) History of Lisp "LISP prehistory - Summer 1956 through Summer 1958."

## Sources

* ﻿Gyro II, A Macro-Defined System for List Processing﻿ (Report). Applied Mathematics Division, Argonne National Laboratories. May 1966. ANL-7149.

* ﻿A Checker-Playing Program for the IPL-VC Computer﻿ (Report). Applied Mathematics Division, Argonne National Laboratories. October 1965. ANL-7109.

* ﻿IPL-VC: A Computer System having the IPL-V Instruction Set﻿ (Report). Applied Mathematics Division, Argonne National Laboratories. May 1964. ANL-6888.

* Programming languages: history and fundamentals. Englewood Cliffs, N.J.: Prentice Hall. 1969. pp. 388–400.

* "A Command Structure for Complex Information Processing". Association for Computing Machinery. 1958. pp. 119–128. doi:10.1145/1457769.1457803. ISBN 9781450378642.

## Further reading

* "Programming the Logic Theory Machine". IRE-AIEE-ACM '57 (Western). Association for Computing Machinery. 1957. pp. 230–240. doi:10.1145/1455567.1455606. ISBN 9781450378611.

* "An Introduction to Information Processing Language V". Communications of the ACM (New York, NY, USA: Association for Computing Machinery) 3 (4): 205–211. 1960. doi:10.1145/367177.367205. ISSN 0001-0782.

* Information Processing Language-V Manual. Englewood Cliffs, N.J.: Prentice Hall. 1964.

* Alt, Franz L., ed (1960). "Programming Computers to Play Games". Advances in Computers Volume 1. 1. Elsevier. pp. 165–192. doi:10.1016/S0065-2458(08)60608-7. ISBN 9780120121014.

## External links

* Allen Newell, "Biographical Memoirs", National Academy of Sciences (includes a short section on IPL)
* IPL documents from BitSavers
* Influence of IPL on LISP
* A Common LISP interpreter for IPL-V, including a working transcription of the Logic Theory Machine

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Information Processing Language. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Information_Processing_Language&oldid=4350039"