Full BASIC

Last updated

Full BASIC, sometimes known as Standard BASIC or ANSI BASIC, is an international standard defining a dialect of the BASIC programming language. It was developed by the American National Standards Institute (ANSI) X3.60 group in partnership with the European ECMA. It describes an advanced version of BASIC with many features including structured programming, matrix math, input/output for file handling, and many other options.

Contents

ANSI's BASIC standardization was a two-stage process. The first, carried out as Minimal BASIC starting in 1974, was an effort to clearly define and standardize the original Dartmouth BASIC language so it could be correctly implemented on different platforms. After its release in late 1977, attention turned to Full BASIC which would be based on the more powerful Structured BASIC being developed at Dartmouth College. The complexity of the system and the many additions promoted by members of the standards committee led to the effort bogging down and the first draft standard was not ready until 1986, four years late.

The standard was ratified on 26 June 1986 as ECMA-116 [1] and January 1987 as ANSI X3.113-1987. It was completely ignored; the microcomputer revolution had occurred while the specification was being argued over, and by the early-1980s Microsoft BASIC running on tens of millions of home computers had already come and gone. Watching the process drag on, the Dartmouth participants left to produce True BASIC based on parts of the standard, but this saw little use. De facto standards like Microsoft's dominated the market and formed the basis for newer languages like Microsoft Visual Basic which incorporated similar concepts.[ citation needed ]

History

Minimal BASIC

The introduction of Dartmouth BASIC in 1964 combined a number of emerging concepts in the computer field, including timesharing and direct interaction with the user, known at the time as a "conversational interface". General Electric, who supplied the GE 235 mainframe computer it ran on, used a modified version of Dartmouth's system to start a service bureau which would eventually evolve into the GEnie online service. Many other companies, Tymshare and CompuServe notable among them, quickly introduced hosted BASIC services of their own, following the Dartmouth model. [2] [3]

In 1968, Hewlett-Packard (HP) introduced the HP 2000 series minicomputers, which offered the same features of the earlier mainframe systems in a rack-mount system that could be configured in a complete form for around $100,000 (equivalent to $876,172in 2023). [4] Their HP Time-Shared BASIC had a number of differences from Dartmouth, [5] and these were soon copied by other mini vendors like Data General. One holdout was Digital Equipment Corporation (DEC), who did not introduce a BASIC of their own design until 1972. This version, BASIC-PLUS was different from either the HP or Dartmouth dialects. By the early 1970s where were three major dialects and dozens of minor variations being used in the market.

In January 1974 a new group formed under the ANSI umbrella to define a single standard BASIC. [6] The Dartmouth team formed a core part of the group. Dartmouth was working on a greatly expanded version of BASIC known as Structured BASIC (SBASIC) which became the basis for ANSI. At the time, few other dialects supported its many new features. The group decided that a complete standard based on SBASIC would take some time to agree on, so the ANSI BASIC effort was split into two milestones. The first, Minimal BASIC, would produce a standard that included only the most basic features that would be required of any implementation. Even long-supported features from Dartmouth like matrix math would be left out. The draft standard for Minimal BASIC was released in January 1976, the final draft in July 1977, and it was ratified that December. Arthur Luehrmann, a physicist from Dartmouth College who was a proponent of BASIC and part of the ANSI group later stated:

"X3J2's first few years were spent (in hindsight, some might say 'wasted') on standardizing what amounts to the original 1964 Dartmouth Basic... Minimal Basic was more a toy than an actual language." [7]

Full BASIC

The group then turned their attention to Full BASIC. By this time the microcomputer revolution was in full flight, and millions of machines running Microsoft BASIC or a similar BASIC were entering the market. [lower-alpha 1] In spite of this, none of the participants were microcomputer vendors or suppliers. Instead, the participants remained mainframe vendors like IBM, Control Data and General Electric, minicomputer vendors like Digital Equipment Corporation (DEC), Data General and Wang Laboratories, and other very large companies like 3M, American Express and Kodak. [9]

The effort immediately ran afoul of the second-system effect as every member began to add their own list of "must have" features. Some wanted the language to continue the tradition of being aimed at educational uses running on small machines and desired a simple language with only rudimentary file support and similar features. Others were mainframe users that wanted to support loadable modular programs and other expansive programming features to compete with languages like COBOL or FORTRAN while offering better string manipulation. A third group was primarily interested in business applications, especially European users where BASIC had become a primary business language, and they demanded the system include extensive file handling and decimal math that did not suffer from rounding problems. [10]

John G. Kemeny and Thomas E. Kurtz, the original designers of BASIC and members of the ANSI group, were critical of the process. In a 1982 article, Kurtz wrote about how even seemingly small issues had turned into major controversies. He used the example of the OPTION BASE statement. When arrays were first added to BASIC, they started at index 1, such that DIM A(3) made an array with three slots, 1, 2 and 3. In some cases, an index 0 is more natural, so OPTION BASE 0 was added in later versions of the Dartmouth code so the same definition would have four slots, 0 to 3. During Minimal, there was continual debate about what the default base should be, and 0 was finally selected. Five years later, during the Full efforts, it was decided that arrays could define any lower bound using new syntax, DIM YEAR(1970 TO 1990). This eliminated the demand for OPTION BASE 0 and the decision was made to change the default to 1 again. [11]

Initially, the X3.60 group was targeting a summer 1982 date for the first technical review copy, which would be sent to the ANSI X3 committee in the fall. During this period the proposed standard would be sent out, and comments from the public would be accepted. The final draft would be sent back to X3 in 1983 for ratification that year. [12] This proved rather optimistic. The first draft was not released until January 1985 [1] and the final draft in 1986 for ratification in January 1987. [13] During this time, the standard grew so large that it was ultimately split into a core module and five optional add-ons, which included complex file handling, real-time computing support, fixed decimal math, optional editing commands and even a platform-independent graphics module. [14]

The result was criticized during the public comment period. One reviewer noted it had grown so large that "the resulting language rivals any current programming language in complexity" and that "conforming to the entire standard would compare with the most substantial compiler projects ever attempted". [15] It goes on to describe, for instance, how there are no less than five different ways to describe a subroutine, three to define a string's maximum length and two ways to define an array. [16] Referring to the issue of array bounds, it is noted that the committee agreed the adopted solution was "intolerable" and made plans to fix it "later". [17]

There is no evidence that any of the participants actually built a conforming version after the release of the standard and any mention of ongoing effort promptly disappears. From 1987, the only mentions of the standard are that it exists and that True BASIC encompassed some of its features. Additionally, with millions of micros running some variation of MS's de facto standard by this point, the new ANSI standard was seen as the non-standard solution. [18] Much of the original success of BASIC on the micro platforms was that it allowed programs to be typed in from printed source code, but by the mid-1980s this had been replaced by shrinkwrap applications and the need for BASIC as a distribution system had faded. [19] On the large-systems side, the original use as a teaching language was being increasingly replaced by Pascal, as the external problems BASIC aimed to address, like interactivity and online editing, were now available in most systems. [20]

True BASIC

The standards process was so slow that even the author of Structured BASIC eventually gave up on it. Stephen Garland was asked to prepare a series of College Board tests for high school students, and wrote them in Pascal instead. This was somewhat controversial given that many computers in wide use, like the Commodore 64 and TRS-80 did not have a full implementation of Pascal. Luehrmann, was critical of the effort, suggesting a more general course that would be applicable to more students. [21]

It became clear to the Dartmouth participants in the ANSI group that the effort had no hope of being completed in any reasonable time period. They left the effort and started a new company to bring their version of the language to market as True BASIC. True BASIC combined many of the features of the core standard but also made a number of changes of its own. Among the most notable was that line numbering was now optional. The language was not well received, with many reviews expressing the same concerns about feature bloat that had been raised about the Full BASIC standard. Jerry Pournelle derided it as "madness" [22] and John Dvorak dismissed it as "sad" and "doomed to failure." [23]

Description

Program editing

Like previous versions of BASIC, Full BASIC was designed to work in a line editor environment and thus uses line numbers to indicate individual or ranges of lines to be edited or removed. Line numbers could range from 1 to 50,000, in contrast to Minimal which was 0 through 9999. This meant that valid Minimal programs using line 0 were invalid in Full. Logical lines were at least 132 characters long. Logical lines could be extended across several physical lines using the "continuation character", the ampersand. Unfortunately, the ampersand was also selected as the string concatenation operator, which complicated the parser. [24]

Additional editing commands included RENUMBER and DELETE, which by this time were common on newer microcomputer dialects. A new concept was EXTRACT, which copied a range of lines into a new file and deleted them from the original program, allowing them to be extracted to a subprogram. [25] These could then be invoked using the CHAIN command. CHAIN could also include an optional WITH followed by a list of parameters, in which case it was expected to return a value in a variable with the same name as the program (see "Structure", below). [26]

Basic functionality

Many of the commonly used keywords found in Minimal or other dialects remained; PRINT, INPUT, DATA and READ for instance. There were numerous minor changes to these commands. For instance, at edit time keywords can be typed in upper or lower case, or any mixture. As was the case in the past, they were normally displayed in uppercase, while a new convention was to use snake case for multi-character variable names. [27]

Dartmouth BASIC introduced the REM statement for in-line comments and this was universally supported in other dialects. Many dialects also added a short-form, most commonly using the single-quote, ', as seen in Microsoft BASIC. For Full, they selected the exclamation mark, ! for this role, [28] although there appears to be no reason not to use the single quote as it is not otherwise used - strings do not allow single-quote delimiters for instance. [29] A more controversial change was that the LET keyword was now required for all assignments in order to make the parsing simpler, whereas in every other dialect LET was optional. This included Minimal, so any Minimal code using this short-cut was incompatible with Full. [30]

On top of the relatively small set of 23 keywords and 11 functions from Minimal, Full added dozens of its own, for a total of 176 keywords (defining 161 separate concepts), 38 mathematical functions and 14 string functions if all extensions were included. [31] A simple list of the keywords, laid out in three columns, fills two pages in the standards document. [32]

Structure

The major difference between Full and Minimal was the addition of block-oriented structured programming constructs. In Minimal, and most BASIC interpreters, the program logically consisted of independent lines of code and one could start execution at any point by GOTOing any line number. The only exception to this rule was the FOR...NEXT loop, where all of the lines from the FOR to NEXT were logically considered to be a single block of code. Branching into or out of a FOR block would result in odd behaviour, typically implementation dependant but generally some form of error like "NEXT WITHOUT FOR". [33]

In Full, branching into a FOR...NEXT block is not allowed, nor is branching out without using the EXIT statement. Implementations were supposed to check for such statements and disallow them, for instance, finding cases where to code GOTOed into a loop. Checking for such code is difficult in an interpreter which normally examines the program line-by-line; checking for branches into a block from other code in the program would normally require whole-program parsing like a compiler. [16]

In Full, several existing keywords were extended, and others added, to provide additional block structures. Notable was the multi-line IF...THEN...ELSE...END IF, which allowed multiple lines of code to run if the condition was met or failed. SELECT...CASE...CASE ELSE...END SELECT was added to make decision trees, [34] which formerly would have been implemented using the ON...GOTO or multiple IFs to select a line to run. FOR...NEXT loops remained as they were in Minimal, but a new DO...LOOP was added with top tested DO WHILE...LOOP and bottom tested DO...LOOP UNTIL... varieties. All loops could now be safely exited using the EXIT FOR and EXIT DO commands. [35]

On top of these changes to the block structures, Full also added keywords for defining procedures, functions and program blocks. Programs as a whole were now opened with the optional PROGRAM keyword followed by a program name, and ended, as before, with END. Routines could be constructed with SUB...END SUB and called using CALL name. Multi-line functions were created with FUNCTION...END FUNCTION and did not declare a return type as that was part of the name - string function names ended with the dollar sign. The return value was provided by setting a variable to the same name as the function, for instance, a function named "DOIT" would contain a line like LET DOIT=1. Functions could call other functions and themselves, meaning that the language was naturally recursive. [36] Full also retained the earlier style of one-line function definitions using the DEF keyword, but removed the requirement for the function name to start with "FN". For instance, DEF AVERAGE(X,Y)=(X+Y)/2. [37]

In previous BASICs, there was no concept of scope and all variables were global. This is not adequate for the construction of large modular programs, as one section of code may have been written using common variable names like I and might change the value of that variable. As the variable is global, it retains the modified value when it returns to the original code. A key concept of structured programming is the local variable, which holds its value separate from other variables with the same name in other locations in the composite program. As BASIC did not have the concept of scope, many programs relied on the global behaviour and used variables to pass information in and out of subroutines. To allow both concepts in the new language, Full BASIC added the EXTERNAL keyword that could be added to a function or subroutine and made any variables within in local. [38] As BASIC programs generally placed subroutines at the end of the program's source code, the DECLARE keyword was added to provide forward declarations. [39]

Data types and variables

Full BASIC introduced long variable names, finally breaking free of the single letter or letter-digit names of the past. It set the new limit at 31 characters. One minor downside to this change was that keywords had to have spaces between them, whereas most earlier versions allowed the spaces to be left out. This was because with single-letter names a line like FORS=1TOA can be parsed as "FORS", which can not possibly be a variable in a two-letter variety of BASIC. In Full, this would have to be typed FOR S=1 TO A because "FORS" is a valid variable name. [40] As was the case in earlier BASICs, data types in Full were denoted by suffixes on the variable name. Minimal had avoided this issue by only having numeric variables, but Full included strings as well, denoted using the dollar-sign, for instance A$. [27]

Full BASIC required decimal math for the default implementation of the floating point system. As this was not universally supported in hardware, especially on minis and micros, it also added the OPTION ARITHMETIC NATIVE which indicates that math should be carried out using the system's default floating point implementation, whatever that may be. It can be returned to BCD mode with OPTION ARITHMETIC DECIMAL. This is in addition to the fixed-point math option, if installed. Numeric and string variables otherwise worked like those in other BASICs. [41]

A new addition was the fixed-point math extension, which allowed variables to have specified accuracy. This was turned on using the command OPTIONAL ARITHMETIC FIXED [lower-alpha 2] followed by an asterisk and a format specifier, for instance, OPTION ARITHMETIC FIXED*8.2 would set all numeric variables to have 8 digits of accuracy and two decimal places. Such a declaration must be placed before any mathematics code in the rest of the program. [43] Furthermore, any single variable could be individually defined using something like DECLARE NUMERIC*8.2 A, B. [44]

Most BASICs supported the construction of array variables using the DIM keyword, for instance, DIM A(5), B(2,2) defines two arrays, the single-dimension A and two-dimension (matrix) B. In Full BASIC, the lower bound of any array was normally 1, so in this case, the variable A has five "slots", numbered 1 though 5. Using OPTION BASE 0 above this declaration would add another slot at index 0. [45] Full also added a new system to directly specify the lower and upper bounds using the TO keyword, for instance, DIM A(100 TO 200) which makes a one-dimensional 101-slot array. [45] To further confuse matters, DECLARE NUMERIC could also be used to create arrays; the same dimensions as the last example could be created with DECLARE NUMERIC A(100 TO 200). [16]

Mathematics, logic and matrices

The list of supported math operators included all of those from Minimal, +, -, *, / and ^. [46] The new MOD function returns the remainder of an integer division. The list of logical operators was expanded, AND, OR and NOT had been removed from Minimal and now re-added, and the alternative forms of comparison operators were added, =<, => and ><. [31]

The list of primary built-in functions remained similar to previous versions of BASIC, including common examples like SQR or ABS. Trig functions were expanded to include ASIN, ACOS, ATN, COT, CSC and SEC. The new ANGLE function returned the angle between the origin and a given X,Y point. BASIC normally calculated angles in radians, but OPTION ANGLE DEGREES would convert all parameters and outputs to degrees, and the system exposed the PI function which was used in these conversions and elsewhere. [47]

Dartmouth BASIC had introduced matrix operations relatively early in its evolution, and these were part of Full. These overload the existing math functions, so one can multiply two arrays using MAT A=A*B or multiply the contents of an array by a scalar if the B parameter is not an array. The system also adds several array-only functions, which includes ZERo, INVert and DETerminate, among others. The addition of matrix math also requires modification of existing keywords like PRINT and INPUT, which output or input multiple elements as needed to fill the array parameter. [48]

Matrixes may be redimensioned as part of a MAT INPUT by specifying the new bounds, like MAT INPUT A(3.3). The new dimensions must have a total number of elements equal or smaller than the original DIM, so in this example if the original definition was DIM A(2,2), the input would cause an error. [49]

Strings

Early versions of Dartmouth BASIC did not include string variables or manipulation, the only strings in a program were constants like PRINT "HELLO, WORLD!". Version 4, of 1968, added string variables and a single method to manipulate them, CHANGE, which converted strings to and from an array containing the ASCII values of the characters. For instance, CHANGE "HELLO, WORLD!" TO A would produce an array of values in A, where A(0) was 72, the decimal ASCII value for "H". This made string manipulation fairly difficult, for instance, to extract the "HELLO" from "HELLO, WORLD!", one would have to:

10A$="HELLO, WORLD!"20DIMA(25),B(5)30CHANGEA$TOA40FORI=1TO550B(I)=A(I)60NEXTI70CHANGEBTOB$

Many dialects of BASIC had added their own methods of performing more useful string manipulation to avoid such complication. For Full BASIC, the committee selected a variation on the concept introduced by HP, "string slicing". This concept treats the string as an array of characters and can access them using an array-like specification known as a "slice". To extract "HELLO" from "HELLO, WORLD" in Full, one would use B$=A$(1:5). The concept is similar to that of CHANGE, but this method produces results that are themselves strings, not numeric values, and thus one can PRINT B$ to produce "HELLO". One significant difference between Full's approach and previous ones like HP is that it used a different syntax for the slicing, whereas the earlier systems used array syntax. For instance, in HP, the equivalent line is B$=A$(1,5). As this is the same syntax as array accesses, HP (and similar) generally did not allow string arrays, [50] whereas this was allowed in Full. [51]

This approach should be contrasted with the solution selected by DEC, the use of functions that return new strings, LEFT$, MID$ and RIGHT$. This was the solution picked up by Microsoft when they wrote their BASIC on the PDP-10. Converting between the two can be error prone, to perform the equivalent of RIGHT$(n), Full would use DEF Right$(A$, n) = A$(Len(A$)-n+l). [37]

Input/Output

Another area of focus for Full BASIC was input/output (I/O). Minimal BASIC's only I/O was the INPUT and PRINT commands and the ability to hard-code data using the DATA statements and READ it. Almost all practical dialects added OPEN and CLOSE to create a "channel" that was then used to refer to that particular file or device.

INPUT now included an optional PROMPT, followed by a string, a colon and then the input variables, for instance INPUT PROMPT "What is your age? " : A. [52] By this time almost all BASICs included a similar feature without the word PROMPT and using the existing print separator semicolon instead of colon, for instance in MS BASIC the same line would be INPUT "What is your age? "; A. On top of this, Full also added the new TIMEOUT and ELAPSED keywords: INPUT TIMEOUT 30, ELAPSED T, PROMPT "What is your age? ": A, which will continue execution after 30 seconds even if the user enters nothing, and will put the time it took, possibly the 30 seconds, into the variable T. For systems lacking a clock (which was not uncommon at the time), T would always return -1. [53]

PRINTing was similarly expanded with the optional USING statement, which had already appeared on a number of implementations. The USING was normally followed by a format string using number signs, asterisks and percent signs to mark decimal places. The format string could be placed in a string variable and then referred to, or an optional separate line containing a IMAGE : could be referred to by line number. [54] [lower-alpha 3] Full also added new commands to set the printing area, SET MARGIN and SET ZONEWIDTH. [55] The current values of these various settings (and others) could be returned using ASK. For instance, SET MARGIN 10 followed by ASK MARGIN J would set J to 30. [56]

Full supported file operations with OPEN and CLOSE and a channel number prefixed with a number sign, for instance, OPEN #3: NAME "afile". Data can then be written using INPUT and PRINT or READ and the new WRITE. [57] Additional file handling commands included ERASE and REWRITE, and all of these commands had numerous options and modes. Much of this stemmed from the different types of physical devices that were still common in the late 1970s, magnetic tape, for instance, could only be accessed sequentially so the new standard offered options for SEQUENTIAL or STREAM, etc. The list of options and their interactions and limitations covers many pages in the standard. [58] For instance, it is possible to PRINT to a file of DISPLAY type, but not INTERNAL type, which required WRITE. [59]

Exception handling and debugging

Like many BASICs of the era, Full added the TRACE ON command which would print out line numbers as the program executed. It could also redirect the printing of the line numbers to another device or file using TRACE ON TO #3, where #3 was a previously opened channel. It also added the DEBUG ON and related BREAK statement, the latter of which would cause an exception if debugging had previously turned on. Debugging status was limited to a particular program, so it could be turned on in one program and off in a subprogram, for instance. [60]

Additionally, Full added true exception handlers, based on the WHEN EXCEPTION...END WHEN block. There were two ways to use this, if the code block started with WHEN EXCEPTION IN the following code was executed as a block and any exception within it would cause it to jump to the USE section, which operates similar to an ELSE. It can also be used by defining a separate subroutine-like block using HANDLER name which would then be called by name using WHEN EXCEPTION USE name. [61] The code could test which exception had occurred using the meta-variables EXTYPE or the EXTEXT$, neither of which needed an ASK. RETRY exited the error handler and returned to the line of the error, while CONTINUE could be used within the mainline code to ignore errors even within WHEN blocks. [62]

Graphics

Around the same time that Full was being designed, a parallel effort was underway to define the Graphics Kernel System, or GKS. This was offered as one of the optional modules in Full. This added dozens of special keywords like LINE STYLE and WINDOW with syntax that did not match that of the other modules in the standard. For instance, the CLIP command turned on clipping to the current viewport such that items drawn outside its boundaries would not be visible; this took a string value instead of a boolean, CLIP "On". [63] Several common image modification commands were added, SHIFT, SCALE, ROTATE and SHEAR. [64]

As images are often built up from common elements, Full added the new PICTURE block structure, which is otherwise similar to a SUB and invoked with DRAW rather than CALL. [65] The difference is that the output of a picture block can be modified with the modification using WITH. For instance, if one defined a PICTURE CIRCLE which produced a circle of radius one, a smaller circle could be drawn and moved to the side with DRAW CIRCLE WITH SHIFT(2) * SCALE(.4). [65]

Real-time

Full's real-time module added the concept of "parallel sections", through the PARACT keyword. These looked like subroutines (and pictures) but had a number of additional keywords that controlled their invocation. For instance, one could define code that would respond to an EVENT and then cause it to run by issuing a MESSAGE elsewhere in the code. The messages could invoke multiple handlers using the SHARED ports concept. [66]

The system also allowed these blocks and objects to be connected to external code that would create these messages. One could, for instance, have code that waited on a device that periodically created text output, and then the appropriate handler would automatically be called when new text was available. Because the actual data from such devices tends to be multi-part, not something simple like a string or number, the real-time library also added the ability to define STRUCTUREs that could then be read or written as an atomic unit. [67] These were then read and written using the IN FROM and OUT TO commands, [68] or if the data was SHARED, the otherwise similar GET FROM and PUT TO. [69]

Although many real-time programs can be modelled as a system simply responding to external events, it is also common for the program itself to periodically post these events. For this, Full added the START command and the associated WAIT which would pause execution for a given DELAY (a number of seconds) or TIME (an explicit time-of-day) or until an EVENT was seen. [70]

ECMA vs. ANSI

The ECMA and ANSI standards were not developed jointly but in parallel, though with overlapping committee membership. Conversely, the ISO working group for BASIC did not develop a standard of their own, instead planning to adopt either the ECMA or ANSI standard. [71]

Independently of ANSI, the ECMA committee responsible for the BASIC standard split it in two: ECMA BASIC-1 and ECMA BASIC-2. BASIC-1 included some of the file manipulation system but lacked the exception handling, while BASIC-2 added the full suite of file commands, fixed decimal math and the exception handling system. [1] Additionally, in BASIC-1 all fundamental keywords like PRINT were reserved words which simplified the parser, while in BASIC-2 they followed the ANSI pattern and could be used within user-created subroutines and functions. [1]

The ISO working group had initially planned to use ECMA's standard. Faced with the problem of two different candidate standards, in September 1987 it was directed to develop a single international standard unifying the two. This was accomplished by specifying that compliance to either standard could be claimed as comformance to the ISO standard. [71]

Notes

  1. In an article in 1984, Luehrmann estimated there to be 10 million such machines. [8]
  2. The OPTIONAL keywords does not appear in the examples in the standards document [42] but is required.
  3. IMAGE works in the same way that FORMAT does in FORTRAN.

Related Research Articles

<span class="mw-page-title-main">BASIC</span> Family of programming languages

BASIC is a family of general-purpose, high-level programming languages designed for ease of use. The original version was created by John G. Kemeny and Thomas E. Kurtz at Dartmouth College in 1963. They wanted to enable students in non-scientific fields to use computers. At the time, nearly all computers required writing custom software, which only scientists and mathematicians tended to learn.

<span class="mw-page-title-main">True BASIC</span> Programming language

True BASIC is a variant of the BASIC programming language descended from Dartmouth BASIC—the original BASIC. Both were created by college professors John G. Kemeny and Thomas E. Kurtz.

Tiny BASIC is a family of dialects of the BASIC programming language that can fit into 4 or fewer KBs of memory. Tiny BASIC was designed by Dennis Allison and the People's Computer Company (PCC) in response to the open letter published by Bill Gates complaining about users pirating Altair BASIC, which sold for $150. Tiny BASIC was intended to be a completely free version of BASIC that would run on the same early microcomputers.

Commodore BASIC, also known as PET BASIC or CBM-BASIC, is the dialect of the BASIC programming language used in Commodore International's 8-bit home computer line, stretching from the PET (1977) to the Commodore 128 (1985).

Sinclair BASIC is a dialect of the programming language BASIC used in the 8-bit home computers from Sinclair Research, Timex Sinclair and Amstrad. The Sinclair BASIC interpreter was written by Nine Tiles Networks Ltd.

Dartmouth BASIC is the original version of the BASIC programming language. It was designed by two professors at Dartmouth College, John G. Kemeny and Thomas E. Kurtz. With the underlying Dartmouth Time Sharing System (DTSS), it offered an interactive programming environment to all undergraduates as well as the larger university community.

<span class="mw-page-title-main">ActionScript</span> Object-oriented programming language created for the Flash multimedia platform

ActionScript is an object-oriented programming language originally developed by Macromedia Inc.. It is influenced by HyperTalk, the scripting language for HyperCard. It is now an implementation of ECMAScript, though it originally arose as a sibling, both being influenced by HyperTalk. ActionScript code is usually converted to byte-code format by a compiler.

BASIC-PLUS is an extended dialect of the BASIC programming language that was developed by Digital Equipment Corporation (DEC) for use on its RSTS/E time-sharing operating system for the PDP-11 series of 16-bit minicomputers in the early 1970s through the 1980s.

<span class="mw-page-title-main">TI BASIC (TI 99/4A)</span> Programming language for TI-99 home computers

TI BASIC is an ANSI-compliant interpreter for the BASIC programming language built into the 1979 Texas Instruments TI-99/4 home computer and its improved 1981 version, the TI-99/4A.

HP Time-Shared BASIC is a BASIC programming language interpreter for Hewlett-Packard's HP 2000 line of minicomputer-based time-sharing computer systems. TSB is historically notable as the platform that released the first public versions of the game Star Trek.

C++/CLI is a variant of the C++ programming language, modified for Common Language Infrastructure. It has been part of Visual Studio 2005 and later, and provides interoperability with other .NET languages such as C#. Microsoft created C++/CLI to supersede Managed Extensions for C++. In December 2005, Ecma International published C++/CLI specifications as the ECMA-372 standard.

<span class="mw-page-title-main">Rexx</span> Command/scripting/programming language

Rexx is a programming language that can be interpreted or compiled. It was developed at IBM by Mike Cowlishaw. It is a structured, high-level programming language designed for ease of learning and reading. Proprietary and open source Rexx interpreters exist for a wide range of computing platforms; compilers exist for IBM mainframe computers.

SCELBAL, short for SCientific ELementary BAsic Language, is a version of the BASIC programming language released in 1976 for the SCELBI and other early Intel 8008 and 8080-based microcomputers like the Mark-8. Later add-ons to the language included an extended math package and string handling. The original version required 8 kB of RAM, while the additions demanded at least 12 kB.

SUPER BASIC, sometimes SBASIC for short, is an advanced dialect of the BASIC programming language offered on Tymshare's SDS 940 systems starting in 1968 and available well into the 1970s.

Data General Extended BASIC, also widely known as Nova Extended BASIC, was a BASIC programming language interpreter for the Data General Nova series minicomputers. It was based on the seminal Dartmouth BASIC, including the Fifth Edition's string variables and powerful MAT commands for matrix manipulation. In contrast to the compile-and-go Dartmouth BASIC, Extended BASIC was an interpreter.

SDS BASIC, also known as CP-V BASIC, Batch BASIC or Sigma BASIC depending on the version, is a BASIC programming language compiler for Scientific Data Systems's (SDS) Sigma series mainframe computers, originally released in 1967. Xerox purchased SDS in 1969 and began rebranding it as Xerox Data Systems, and finally just Xerox, at which time the language became known as Xerox BASIC.

<span class="mw-page-title-main">BASIC interpreter</span> Interpreter that enables users to enter and run programs in the BASIC language

A BASIC interpreter is an interpreter that enables users to enter and run programs in the BASIC language and was, for the first part of the microcomputer era, the default application that computers would launch. Users were expected to use the BASIC interpreter to type in programs or to load programs from storage.

Wang BASIC is a series of BASIC programming languages for computers from Wang Laboratories. The term can be used to refer to the BASIC on any Wang machine, but is mostly associated with the versions on the Wang 2200 minicomputer series of the early 1970s. When these machines were updated to the VP series in 1976, BASIC-2 was introduced and remained the pattern for future machines in the 2200 series. A planned BASIC-3 was never released.

Minimal BASIC is a dialect of the BASIC programming language developed as an international standard. The effort started at ANSI in January 1974, and was joined in September by a parallel group at ECMA. The first draft was released for comments in January 1976 and the final standard, known alternately as ANSI X3.60-1978 or ECMA-55, was published in December 1977. The US Bureau of Standards introduced the NBSIR 77-1420 test suite to ensure implementations met the definition.

CALL/360:BASIC was an IBM dialect of the BASIC programming language for the System/360 and later platforms. It was based on mid-1960s versions of Dartmouth BASIC but added a number of extensions. Most of these were related to file handling, which, at that time, Dartmouth lacked. It also added support for the mathematical symbols found on some IBM terminals, so that <= could be entered directly as . Differences are otherwise minor.

References

Citations

  1. 1 2 3 4 ECMA 1986, p. i.
  2. McCracken, Harry (29 April 2014). "Fifty Years of BASIC, the Programming Language That Made Computers Personal". Time.
  3. "IBM VS the World: That's How It Is". Computerworld. 5 December 1973.
  4. Leibson, Steve (2017). "HP: The Accidentally, On-Purpose Computer Company". HP9825.COM.
  5. "Hewlett-Packard 2100 Processor Description, 1972" (PDF). Retrieved 2020-08-18.
  6. ECMA 1978, p. iii.
  7. Luehrmann 1984, p. 173.
  8. Luehrmann 1984, p. 152.
  9. Standard 1987, pp. i, ii.
  10. Kurtz 1982, pp. 182, 186.
  11. Kurtz 1982, p. 214.
  12. Kurtz 1982, pp. 188.
  13. Standard 1987, p. i.
  14. Kurtz 1982, p. 190.
  15. Guntheroth 1983, p. 51.
  16. 1 2 3 Guntheroth 1983, p. 52.
  17. Guntheroth 1983, p. 53.
  18. "Viewpoints". PC Mag. 29 September 1987. p. 15.
  19. Bellis, Mary (26 January 2019). "The History of the BASIC Programming Language".
  20. McGregor, J.J; Watt, A.H. (October 1981). "PASCAL Rules O.K.?: A Comparison of PASCAL and BASIC as Languages for Teaching Computer Programming to Novices". The Mathematical Gazette. 65 (433): 171–182. doi:10.2307/3617129. JSTOR   3617129. S2CID   64737920.
  21. Mace 1982, p. 29.
  22. Pournelle 1985, p. 366.
  23. Dvorak 1984, p. 88.
  24. Guntheroth 1983, p. 54.
  25. Standard 1987, p. 272.
  26. Standard 1987, p. 106.
  27. 1 2 Standard 1987, p. 31.
  28. Standard 1987, p. 29.
  29. Standard 1987, p. 50.
  30. Kurtz 1982, p. 196.
  31. 1 2 Guntheroth 1983, p. 55.
  32. Standard 1987, pp. 17–19.
  33. "Next without For". Microsoft Build. 13 September 2021.
  34. Standard 1987, p. 87.
  35. Standard 1987, p. 84.
  36. Standard 1987, pp. 94, 95.
  37. 1 2 Standard 1987, p. 94.
  38. Standard 1987, pp. 94–100.
  39. Standard 1987, p. 105.
  40. Kurtz 1982, p. 192.
  41. Standard 1987, p. 49.
  42. Standard 1987, p. 263.
  43. Standard 1987, p. 262.
  44. Standard 1987, p. 265.
  45. 1 2 Standard 1987, p. 66.
  46. Standard 1987, p. 37.
  47. Guntheroth 1983, p. 49.
  48. Guntheroth 1983, p. 70.
  49. Guntheroth 1983, p. 71.
  50. Brannon, Charles (April 1981). "String Arrays in Atari BASIC". Compute!. p. 103.
  51. Standard 1987, p. 74.
  52. Standard 1987, p. 111.
  53. Standard 1987, pp. 111, 112.
  54. Standard 1987, p. 123.
  55. Standard 1987, p. 164.
  56. Standard 1987, p. 151.
  57. Standard 1987, p. 142.
  58. Standard 1987, pp. 141–154.
  59. Standard 1987, p. 144.
  60. Standard 1987, p. 195.
  61. Standard 1987, pp. 187–188.
  62. Standard 1987, p. 188.
  63. Standard 1987, p. 199.
  64. Standard 1987, p. 230.
  65. 1 2 Standard 1987, p. 229.
  66. Standard 1987, p. 239.
  67. Standard 1987, pp. 239–240.
  68. Standard 1987, p. 248.
  69. Standard 1987, p. 250.
  70. Standard 1987, p. 244.
  71. 1 2 Kurtz 1994, p. 478.

Bibliography

Further reading