In 1964, students at Dartmouth College needed better access to computers and a simple, effective language for writing programs. John G. Kemeny, chairman of the Department of Mathematics, and Professor Thomas Kurtz created the Dartmouth Time Sharing System, one of the first time sharing systems in the United States. They then created BASIC so students could write programs for the General Electric GE 225 mainframe at the heart of the system.
The origins of BASIC
On May 1, 1964, two programs written in BASIC ran at the same time on the Dartmouth time shared system. Ten years later, a version of BASIC written by Bill Gates and Paul Allen was included on the Altair, the first personal computer. After three decades, BASIC was by far the most popular computer programming language.
Kemeny and Kurtz started working on a simplified computer language in 1956. Their first language, Dartmouth Simplified Code, or Darsimco, fell by the wayside in 1957 when FORTRAN was introduced. Another ancestor of BASIC was the Dartmouth Oversimplified Programming Experiment, or DOPE, which was too primitive to be useful. Both experiments taught the two men how a language might be aimed at the none expert user.
In the early 1960s, Kemeny believed a new language was necessary to let students outside the sciences use computers. For time sharing to succeed, the language also needed to be simple. Kurtz felt at first that a subset of FORTRAN or ALGOL might serve. While attempting to change FORTRAN, they realized the result would in fact be a new language, and the two men began work on BASIC.
The first program
The first BASIC program ran at about 4:00 a.m. on May 1, 1964. Kemeny and Kurtz wanted as many students as possible to use the language, and they were available to hear about problems and bugs and to provide fixes. Dartmouth copyrighted BASIC but made it available without charge.
The result was a language that was easy to learn and still powerful enough for real work. It also carried a philosophy: computing should be available to students as freely as library books.
True BASIC and the standard
True BASIC is an ANSI Standard Basic developed by John Kemeny and Thomas Kurtz, the authors of the original language. It is a modern structured language and may be the most gentle environment for beginning programmers. The language includes an integrated environment with source, command, and output windows, a full featured editor, instructive demo programs, a user extensible function set, and versions for most popular operating systems.
The documentation runs to more than 600 pages: a guide to using the language, a definitive language reference, technical specifications, illustrations and examples, an ASCII chart, and complete explanations of error messages.
What the language offered
The archive preserves the feature list published with the original BASIC page. It is a reminder of how much was packed into a language designed for beginners.
Easy to learn
- Extremely easy to learn
- Powerful enough for application development
- Fully structured and modern
- Integrated source, command, and output windows
- Full featured editor
Built for real work
- User extensible function set
- Very close to ANSI Standard BASIC
- Versions for most popular operating systems
- Separately compiled libraries
- Automatic memory management
Open the full feature list
Variables and strings
Only two variable types, numbers and strings. Variable typing by name, unlimited variable name length, complete control of scope. Strings with substring expressions, string to number and number to string conversions, a concatenation operator, and a maximum length of 64K each under DOS, with unlimited length in the Macintosh version.
Numbers and structures
Up to 16 accurate digits, automatic coprocessor support, a range from 5e 309 to 1.8e+308, standard IEEE eight byte format, and an exponentiation operator. Structures include multiline IF THEN ELSEIF ELSE, SELECT CASE, DO loops with WHILE and UNTIL, FOR NEXT loops, error handlers, and PICTURE structures for graphics.
Modularization
Named subroutines with parameters, multiline user defined functions, full support of recursion, modules to control the scope of data and routines, commercial and user defined library support, support for assembly and C routines, and internal and external procedures.
Text and graphics
Complete cursor control, formatted output to screen, files, and printer, print zones for columnar output, flexible input with type checking, and input by line, item, or key. Graphics include user defined coordinate systems, support for multiple windows, built in two dimensional transformations, color support, mouse and arrow key support, animation, plotting of points, lines, text, rectangles, ellipses, and regions, filled or outlined objects, matrix plotting, justified text plotting, region flooding, and transformable pictures.
Sound and files
Sounds by frequency and duration, music with a sophisticated PLAY statement, sharps and flats, dotted notes and rests, eight octaves, user definable tempo, legato, normal, and staccato tempo modifiers, and music playable in the background. Files include ASCII text data files, random access record files, and open format byte files.
Editor, matrix, and compiler
The editor is window based, with full mouse support, menu and command modes, cut, copy, and paste, global and local search and replace, keyboard macros, script file support, preprocessor capabilities, a configurable environment, and programs saved as ASCII text files. Matrix features include up to 255 dimensions per array, a user definable lower bound, fully dynamic arrays, built in matrix arithmetic, inverse and transpose functions, determinants and identities, dot and scalar products, matrix input and output, matrix graphics, and complete subscript range functions. The compiler produces fast, compact b code, allows separately compiled libraries, checks parameter types and syntax, offers an optional LET statement and optional declared variable names, and handles automatic memory management.
Debugging and applications
Breakpoints with continue, immediate mode execution, a visual trace utility, single step execution, and a cross reference utility. Standalone applications are easy to create: take your source code and bind it into a program, producing .EXE files on PC and double clickable files on Macintosh, with single file applications and no royalty fees.
Why it mattered
The official languages of the time, then Fortran and Algol and later C, C++, and Java, were designed for professionals. There were very few choices for students, teachers, and others who did not want to dedicate their lives to programming. BASIC provided a solution and played an important role in the field ever since.
At Dartmouth, that belief in access became a graduate program. The CIS program carried the same conviction into information systems and business, and its alumni carried it into schools, hospitals, companies, and research laboratories around the world.
Sources and further reading
- BASIC, a general reference on the language and its history.
- Dartmouth Time Sharing System, background on the system that ran BASIC.
- True BASIC, a reference on the language and the company.
- Computer History Museum, for the wider history of computing.
- Dartmouth College, the home of the project.
- Internet Archive, where earlier versions of this website are preserved.
- Charles Babbage Institute, the University of Minnesota archive of computing history.
- Smithsonian National Museum of American History, for the material culture of computing.