Planner (programming Language) - Control Structure Controversy

Control Structure Controversy

As related in Hewitt, computer memories were very small by current standards because they were expensive, being made of iron ferrite cores at that time. So Planner adopted the then common expedient of using backtracking control structures to economize on the use of computer memory. In this way, the computer only had to store one possibility at a time in exploring alternatives.

One implementation decision in Micro Planner had unfortunate consequences. Lisp had adopted the programming pun of identifying NIL, the empty list with logical false (at memory location 0) because testing for 0 was faster than anything else. Because of the pun, testing for NIL was extremely common in Lisp programs. Micro Planner extended this pun also to use NIL as a signal to begin backtracking. In Micro Planner, it was common to write programs to perform some operation on every element of a list by using a loop to process the first element of a list, take the rest of the list, and then jump back to the top of the loop to test if the list was empty. If the list tested empty, then the program would go on to do other things. Such a program never made it to testing the empty list after processing all the elements because when the last element was processed and the rest of the list was taken, NIL was returned as a value. The Micro Planner interpreter took this as the signal to begin backtracking and began undoing all the work of processing the elements of the list! People were dumbfounded .

In this and several other ways, backtracking proved unwieldy, helping to fuel the great control structure debate. Hewitt investigated some alternatives in his thesis.

Read more about this topic:  Planner (programming Language)

Famous quotes containing the words control, structure and/or controversy:

    Time in the hand is not control of time,
    Nor shattered fragments of an instrument
    A proof against the wind; the wind will rise,
    We can only close the shutters.
    Adrienne Rich (b. 1929)

    It is difficult even to choose the adjective
    For this blank cold, this sadness without cause.
    The great structure has become a minor house.
    No turban walks across the lessened floors.
    The greenhouse never so badly needed paint.
    Wallace Stevens (1879–1955)

    And therefore, as when there is a controversy in an account, the parties must by their own accord, set up for right Reason, the Reason of some Arbitrator, or Judge, to whose sentence, they will both stand, or their controversy must either come to blows, or be undecided, for want of a right Reason constituted by Nature; so is it also in all debates of what kind soever.
    Thomas Hobbes (1579–1688)