KAIL(ID:3764/kai001)CAI language with control structures (to eliminate GoTos) Related languages
References: in SIGCUE Bulletin, 8(l) 1974 view details Introduction Control constructs have been widely studied, especially since structured programming advocates have denounced the GOTO. This nose outlines a new construct: the selector as used in the KAIL language. This addition to the already long list of ~nstructs is justified because: 1. The selector combines flow of control with "answer judging," the process by which a Computer-Aided Instruction (CAI) program determines whether a student reply matches one of the replies anticipated by the lesson author. 2. The selector combines most of the other control constructs that have been widely used, e.g., if-then-else# case# cond, while, .... 3. The syntax suggests an answer to the trivial, yet thorny, question of how to end a nested block of code. Previous proposals include: end of one statement, end, fi-esac-elihw ..., endif-endcase-endwhile .... This work is part of the Automated Computer Science Education System (ACSES) project which uses the PLATO CAI system to teach elementary computer science. PLATO runs on a CDC Cyber 73 dual processor with two million 60-bit words of extended core storage. Attached to the processor are over seven hundred pla~na display terminals, which were invented by the PLATO group for this project. The peak comfortable system load is about four hundred simultaneous users. Under PLATO, all programs are written in a special system language called TUTOR which mixes FORTRAN-like flow of control with peculiar CAI sequencing and sophisticated answer judging facilities. The language KAIL is an attempt to influence the development of TUTOR by showing that modern control constructs can be combined with the higher level features of TUTOR. Extract: Basic Selector Basic Selector In CAI one of the common control operations is to compare a student response against a set of expected correct and incorrect responses. This suggests a control syntax where a given expression (usually the student's reply) is tested against a number of alternatives [10]. We call this construct a selector. in SIGPLAN Notices 11(01) Jan 1976 view details in Int. J. Man-Mach. Stud. 10, 2 (March 1978) view details The unified structure KAIL was conceived from efforts at interactive dialog in computer-aided instruction. This is not surprising, when one considers the author's extensive background in PLATO. Thus, it is also no surprise when the author uses PLATO to conduct the empirical part of his study. The advantages of using PLATO include: a controlled teaching environment, meaningful responses, self-pacing, accurate records, precise timing, and on-line execution capabilities. The disadvantages listed are: expense, possibility of crashes, and subject unfamiliarity. The experiment itself was a 2 * 2 factorial design which tested different groups on a new classical style algorithmic language, a la PL/I, and also a KAIL-like one. After being presented with a verbal and then a programming language representation of a problem, the subjects were asked for a subjective self-evaluation of their understanding, the answers to ten questions about the problem, and a final evaluation. The results claimed are that the KAIL- trained group had a better understanding and answered in a shorter time. In the formal approach, the author based his work on the semantics used by Hoare. By a careful examination of the various proposed control-types: if, while, until, and all, the author determined that the all-type is considerably more complex than the others. The all- type was then deleted because it could be simulated by combining the simpler types. The author concludes that the methods presented give insights which are not obvious from observation and introspection, the primary tools formerly used by language designers. This is a valuable contribution for those making such design decisions. This reviewer enjoyed the paper and found it a worthwhile addition to his library, both for language design and computer- based education. in ACM Computing Reviews 19(11) November 1978 view details Embley studied one particular control construct for programming interactive dialogues for computer-aided instruction (the KAIL selector). His objective was to apply both empirical and formal methods to assist in the design of this new control construct. He first compared the proposed KAIL selector, experimentally, with an ALGOL-like construct, using a CAI system to measure "understandability" of the two constructs. (At this stage, design of the KAIL selector was based on obsenation of factors such as levels of nesting and length of code rather than on formal analysis.) He then examined the semantics (not syntax) of variations of the KAIL selector itself, using a formal notation, to help select between them. The variants were examined formally, not experimentally. Abstract: Formal grammatical description has not generally been applied in the human factors area, which traditionally draws on behavioral science for its methodology. This paper illustrates, by means of a detailed example, how formal grammatical description can be used as a predictive tool to compare alternative designs for ease of use and to identify design choices which could cause users to make mistakes. The paper describes the human interface for two versions of an interactive graphics system intended for use by nonprogrammers. It presents the "action languages" for the two versions, then shows how these user languages can be described in terms of a production rule notation. Particular emphasis is given, in the notation, to actions the user has to learn and remember (i.e., to "cognitive" factors). The paper then presents predictions about human performance based on the formal description, and exploratory results of testing some of the predictions. Since the predictions are based on general properties of the formal description, the technique should also be applicable to other "action languages." Extract: Introduction Introduction In both linguistics and computer science, formal grammars are used to describe languages precisely. In linguistics, a grammar is used to describe the rules for generating sentences in a natural language. These rules are usually assumed to be the ones a native speaker of the language follows implicitly in creating and in understanding sentences. In computer science, a grammar is used to describe a programming language to a translator (e.g., compiler) or a compiler generator. The compiler can then be used to translate statements in the programming language into machine language. Formal grammatical description has not, however, been generally applied in the human factors area, which draws primarily on behavioral science for its methodology. Since human factors methodology rarely includes theoretical description or precise prediction based on formal models, the field is often considered "soft" or even ad hoc (at least, by some practitioners of other disciplines). In this paper we illustrate, by means of a detailed example, how formal description can be used as a tool to aid the design of systems for ease of use. We are specifically concerned with "action languages" for interactive systems -- the sequences of button presses, joystick motions, typing actions, etc. -- performed by a user interacting with a terminal. The intent of the paper is to show that an action language can be formally described and that the formal description can be used to compare alternative designs for simplicity and consistency. We are particularly concerned, in the formal description, with "cognitive" factors-what a user has to learn and remember -- rather than with physical actions themselves. By examining such a formal description rather than waiting for construction of a real, physical model, as required for behavioral testing, we hope to identify some design flaws early in the development cycle. The particular system studied, ROBART, is an experimental, interactive color graphics system for creating slides for technical presentations. It is intended to be used by people without computer training. Two comparable versions of the system exist (ROBART 1 and ROBART 2). The two versions have essentially the same function but differ in the the design of the human interface. The paper describes relevant portions of the two ROBART versions in some detail. It then presents a formal description of the ROBART 1 action language and makes predictions about human performance based on the formal description of ROBART 1 and matching parts of ROBART 2. Then, it presents results of exploratory tests of some of the predictions. The potential value of formal description of action languages is discussed, as well as other related work. Extract: Summary Summary The field of human factors is frequently judged to be lacking in rigor. To counteract this judgment, we have shown, by means of a concrete example, that 1) user actions at a terminal can be described by means of a formal grammatical notation, 2) the formalism can be used to make predictions for comparing design alternatives and locating design flaws, and 3) the predictions can be empirically tested. We have given a complete formal description of the ROBART 1 system and then made predictions on the basis of the formal description of ROBART 1 and matching portions of ROBART 2. We predicted that selecting shapes in ROBART 1 would vary in difficulty, that selecting shapes in ROBART 2 would not vary in difficulty, and that selecting any ROBART 2 shape would be easier than selecting the same shape in ROBART 1. These predictions were upheld in objective testing of immediate memory and in subjective questionnaires. We also predicted that users would make errors in attempting to initiate continuous shapes using ROBART 1 and would not make mistakes in ROBART 2. These predictions were also supported in testing. Formal description of interactive systems is an analytic tool. It makes possible the examination of a design from the human point of view early in the design cycle. We can thus compare some aspects of alternative designs and identify some design inconsistencies before a working model is built. The method we have presented is a general one. Other interactive systems (word processors, editors, etc.) can be described by means of a formal notation. The predictions we made were based on general properties of the formal description and the approach should therefore generalize. in IEEE Transactions on Software Engineering, March 1981 view details |