FLOW (programming language)
FLOW is an educational programming language designed by Jef Raskin in 1970 and implemented on several minicomputers in the early 1970s. The goal of the language is to make it easy to explore algorithms through a highly interactive environment. The overall language is very similar in syntax and structure to the BASIC programming language, but has a number of changes in order to make typing code easier. Most notable among these was the concept of "typing amplification", in which short strings, often a single character, were expanded by the language into the complete "unamplified" source code. Modern integrated development environments and code-oriented text editors often include a similar feature, now normally referred to as autocomplete. The beginning programmer would first create a flow chart to solve the problem. Since all of the problems involved words (rather than mathematical problems) the solution was intuitive. The flow chart would be translated into the flow programming language using a top-down, mechanical method. HistoryIn 1970, the English Department of the University of Kansas hosted a meeting on the use of computers in the humanities. The conference was followed by a training session that ran from June 13 to August 18, where Jef Raskin was one of several teachers involved in training other teachers basic computer skills. During this period, Raskin developed the FLOW language concept.[1] A key design element of FLOW was the attempt to avoid syntax errors by automating the entry of the language as much as possible. For instance, if one wanted to enter the statement Lewis and Norman later referred to this concept as "gag", in that it gagged the user's input until they typed something useful. They illustrated this by recounting one of Raskin's favorite demonstrations of FLOW, where he would close his eyes and hit random keys on the terminal, building a syntactically correct, albeit meaningless, program.[3] Another aspect of the FLOW system's approach to user interaction was its debugger. This included the command On his return to University of California, San Diego (UCSD), Raskin was able to arrange funding from UCSD and matching funds from the National Science Foundation to purchase equipment to develop the FLOW system, a total of $76,000 (equivalent to $615,359 in 2024).[5] The initial system consisted of three Data General Nova minicomputers with 12k words of memory, several VST 1200 terminals, a Tektronix 4002 graphics terminal, and an HP 7200 plotter. In September 1973 the CPUs were updated to 32k words of memory.[6] The first version of FLOW was programmed by Jonathan "Jon" Collins in FORTRAN for use at the summer institute. To facilitate a quick implementation (1 week), Jonathan restricted input to the first character of the command with the computer supplying the balance of the command letters. Hence, typing amplification was invented. Flow was later ported by two UCSD graduate students to Nova assembler language. Later ports included MICRO 800 assembler, BASIC and Algol.[6] DescriptionOverall organizationLike BASIC, FLOW uses line numbers both as an editing aid as well as statement labels. Unlike most BASICs, FLOW automatically numbers programs starting at line 10 and incrementing by 10 as new lines are entered. The line numbers are formatted as three digits, so line 10 is displayed as 010. Users can also enter line numbers manually, and renumber the entire program with the In contrast to BASIC, the Syntax and capabilitiesThe most obvious difference between FLOW and BASIC was that FLOW has only one variable, The language does not have direct user interaction like BASIC's Programs can contain multiple StatementsFrom Jef Raskin's paper describing FLOW, the following statements are available in the programming language and the interactive environment:[8] Program statements
Interactive commands
Example010 COMMENT FIND IF A WORD HAS EITHER AN "F" OR A "G" IN IT 020 COMMENT BY LYRA FORET 19 OCTOBER 1971 030 COMMENT 040 COMMENT SOME TEST CASES ARE FOX, GOPHER, RAT, DOG, CAT 050 COMMENT THE RESPECTIVE ANSWERS SHOULD BE YES, YES, NO, YES, NO. 060 COMMENT 070 TEXT IS "DOG" 080 COMMENT OBTAIN A LETTER OF THE TEXT 090 GET IT 100 COMMENT CHECK FOR A BLANK WHICH INDICATES END OF WORD 110 IF IT IS " " JUMP TO 500 120 COMMENT CHECK FOR F'S OR G'S 130 IF IT IS "F" JUMP TO 200 140 IF IT IS "G" JUMP TO 200 150 COMMENT IT WAS SOME OTHER LETTER, SO GO ON TO THE NEXT CHAR. IN THE TEXT 160 JUMP TO 080 200 PRINT "THE WORD HAD AN 'F' OR A 'G' IN IT." 210 COMMENT WE ARE DONE 220 STOP 500 PRINT "THE WORD DID NOT HAVE AN 'F' OR A 'G' IN IT." ReferencesCitations
Bibliography
Further reading
External links
|