BASIC

acronym

programming

Kept in this browser · My desk

Stands for: Beginner's All-purpose Symbolic Instruction Code

The Beginner's All-purpose Symbolic Instruction Code, created by John Kemeny and Thomas Kurtz at Dartmouth College, first run at 4 a.m. on 1 May 1964.

BASIC was built with a time-sharing system on a GE-225 by Kemeny, Kurtz and undergraduates, for students with no programming background.

What it is. BASIC, the Beginner's All-purpose Symbolic Instruction Code, was created by John Kemeny and Thomas Kurtz at Dartmouth College for students with no programming background, and first ran at 4 a.m. on 1 May 1964 on a GE-225, together with the time-sharing system they built with undergraduates so that many students could use one computer at once. MacTutor's biography of Kemeny dates the decision to 1963, when he and Kurtz "decided that they wanted to give students easy access to computing", and Kemeny's conviction that the language "could and should be exceedingly simple". Kemeny, born in Budapest in 1926, later became president of Dartmouth and, MacTutor notes, made it a condition that he keep teaching.

The original language. Kurtz summarized the first version in a note of 26 October 2005. There were fifteen statement types: LET (required for assignment), PRINT, END (also required), READ, DATA, GOTO, IF (a conditional GOTO), FOR, NEXT, GOSUB, RETURN, DEF, DIM, REM and STOP, with INPUT added slightly later. Variable names were a single letter or a letter followed by a digit, "286 possible variable names"; arrays without DIM ran from 0 to 10; all arithmetic was floating point, about 30 bits or roughly ten digits on the GE-225 and GE-235. There were ten numeric functions (ABS, ATN, COS, EXP, INT, LOG, RND, SIN, SQR and TAN), PRINT zones 15 characters wide with a 75-character margin, and up to 26 user functions named FNA to FNZ.

Quirks from the start. Kurtz recorded one anomaly: a leading minus sign had higher precedence than exponentiation, so -x^2 meant (-x)^2, "repaired in later versions". RND needed a dummy argument, RND(0), only "to get past the syntax scanner". Small rules like these, fixed differently in each later dialect, are why BASIC programs rarely moved between machines unchanged.

The microcomputer language. The Computer History Museum notes that most early personal computers shipped with a version of BASIC, which made it the first language of a generation. The best-known commercial version began with the Altair. In his Open Letter to Hobbyists of 3 February 1976, printed in the Homebrew Computer Club newsletter, Bill Gates wrote that he and Paul Allen had hired Monte Davidoff and developed Altair BASIC, that there were now "4K, 8K, EXTENDED, ROM and DISK BASIC", that the computer time used was worth more than $40,000, and that "less than 10% of all Altair owners have bought BASIC", making the work worth "less than $2 an hour"; his complaint, "most of you steal your software", opened the argument about paying for software.

A standard for the core. As dialects multiplied, the European Computer Manufacturers Association published Standard ECMA-55, Minimal BASIC, in January 1978, fixing a small common core that every implementation could support.

In Brazil. BASIC was the language of the market reserve's micros, among them the TK82-C and TK85, clones of the Sinclair ZX81. The magazine Micro Sistemas shows how it spread: in August 1982 (no. 11) it carried a reader asking for simpler lessons in BASIC, advertisements for BASIC courses such as DATAPRO's course in programming personal microcomputers, and a machine advertised with "8 Kbytes of BASIC language" and 12 significant digits of precision; in June 1983 (no. 21) it reported that the Colégio Bandeirantes in São Paulo had bought a dozen TK82-C micros for its microcomputing course. Programs circulated as listings typed in by hand.

What goes wrong. Line numbers and GOTO made long programs hard to follow, which is the criticism Dijkstra's 1968 letter made famous; later BASICs added structured statements and dropped line numbers. Dialects disagreed on precedence, string handling and graphics, so a listing from one magazine rarely ran on another machine unchanged. And interpreted BASIC on an 8-bit micro was slow, which pushed ambitious programmers to machine code POKEd into memory.

Neighbours. BASIC is FORTRAN's simplified descendant, the first language of the home computer, the subject of type-in programs and of BASICODE, and the product that started Microsoft. Brazilian practice says BASIC.

Also known as: beginner's all-purpose symbolic instruction code, dartmouth basic

Sources

← Back to B Back to the glossary