Historical Background of Interpreted/compiled
In the early days of computing, language design was heavily influenced by the decision to use compiling or interpreting as a mode of execution. For example, some compiled languages require that programs must explicitly state the data-type of a variable at the time it is declared or first used while some interpreted languages take advantage of the dynamic aspects of interpreting to make such declarations unnecessary. For example, Smalltalk (1980), which was designed to be interpreted at run-time, allows generic objects to dynamically interact with each other.
Initially, interpreted languages were compiled line-by-line; that is, each line was compiled as it was about to be executed, and if a loop or subroutine caused certain lines to be executed multiple times, they would be recompiled every time. This has become much less common. Most so-called interpreted languages use an intermediate representation, which combines compiling and interpreting. In this case, a compiler may output some form of bytecode or threaded code, which is then executed by a bytecode interpreter.
Examples include:
- Java
- Python
- Ruby (similarly, it uses an abstract syntax tree as intermediate representation)
The intermediate representation can be compiled once and for all (as in Java), each time before execution (as in Perl or Ruby), or each time a change in the source is detected before execution (as in Python).
Read more about this topic: Interpreted Language
Famous quotes containing the words historical, background and/or interpreted:
“Some of us still get all weepy when we think about the Gaia Hypothesis, the idea that earth is a big furry goddess-creature who resembles everybodys mom in that she knows whats best for us. But if you look at the historical recordKrakatoa, Mt. Vesuvius, Hurricane Charley, poison ivy, and so forth down the agesyou have to ask yourself: Whose side is she on, anyway?”
—Barbara Ehrenreich (b. 1941)
“I had many problems in my conduct of the office being contrasted with President Kennedys conduct in the office, with my manner of dealing with things and his manner, with my accent and his accent, with my background and his background. He was a great public hero, and anything I did that someone didnt approve of, they would always feel that President Kennedy wouldnt have done that.”
—Lyndon Baines Johnson (19081973)
“Most observers of the French Revolution, especially the clever and noble ones, have explained it as a life-threatening and contagious illness. They have remained standing with the symptoms and have interpreted these in manifold and contrary ways. Some have regarded it as a merely local ill. The most ingenious opponents have pressed for castration. They well noticed that this alleged illness is nothing other than the crisis of beginning puberty.”
—Novalis [Friedrich Von Hardenberg] (17721801)