This is an old version, saved 5 Dec 2026, 02:33 by TechWritereditor. It is the current version.
Interpreter (computing)
Interpreter (computing) refers to a computer program that executes high-level instructions one at a time: it examines a program instruction by instruction and calls on code that carries out the machine operations each one requires.[1] This contrasts with a Compiler, which translates an entire program into machine code before it runs.[1]
How it works
Because an interpreter runs source code directly, a programmer does not have to build a separate executable file first.[2] The Python documentation notes that interpreted languages typically have a shorter development and debugging cycle than compiled ones, although their programs generally run more slowly.[2] Many interpreters also offer an interactive mode, in which a user types a statement at a prompt and sees the result straight away.[2]
The line between interpreting and compiling is often blurred. The standard implementation of Python (programming language) first compiles source code into bytecode, an intermediate form that is then executed by a Virtual machine; the bytecode is cached so the same file runs faster the second time.[2] Britannica notes that interpretation is often chosen for new languages and for specialised uses such as web scripting, where interpreted "scripting languages" link components like web pages and databases, while compilation is generally more efficient for widely used languages.[1]
History
Attempts at higher-level programming began early in the stored-program era of the late 1940s.[1] Short Code, suggested by John Mauchly in 1949 and implemented by William Schmitt for the BINAC and later the UNIVAC, was the first such language actually put into use.[3] Later languages such as FORTRAN and BASIC made programming more abstract still.[1]
An influential early interpreter came from the Lisp (programming language) project. Its creator, John McCarthy, recalled that S. R. Russell noticed that the language's eval function could serve as an interpreter, and promptly hand-coded it; as a result, the team "now had a programming language with an interpreter".[4]
See also
References
- ^ interpreter. Encyclopaedia Britannica. britannica.com
- ^ Glossary. Python Software Foundation. docs.python.org
- ^ Shortcode. Encyclopaedia Britannica. britannica.com
- ^ The implementation of LISP. John McCarthy, Stanford University. www-formal.stanford.edu