Difference between revisions of "Programming language"

From Computer History Wiki
Jump to: navigation, search
(A start...)
 
m (See also: +1)
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
The earliest programming languages were [[assembly language]]s, which were simply human-readble forms of the machine's basic [[object code]]. Rather than being in [[binary]] (expressed in whatever base), they instead uses mnemonics to indicate the instructions.
 
The earliest programming languages were [[assembly language]]s, which were simply human-readble forms of the machine's basic [[object code]]. Rather than being in [[binary]] (expressed in whatever base), they instead uses mnemonics to indicate the instructions.
  
It soon became apparently that it was desirable to be able to allow people to give these directions in a form which was closer to the high-level tasks the humans were trying to accomplish. For example, since an important use for early computers was to perform mathematical computations, [[FORTRAN]] (one of the earliest computer languagez]] allowed directions to be given in equations of a form familiar to engineers, etc.
+
It soon became apparently that it was desirable to be able to allow people to give these directions in a form which was closer to the high-level tasks the humans were trying to accomplish.
 +
 
 +
For example, since an important use for early computers was to perform mathematical computations, [[FORTRAN]] (one of the earliest computer languages) allowed directions to be given in equations of a form familiar to engineers, etc.
  
 
The development of programming languages has been a never-ending process since then, as experience allows better languages, ones with capabilties more suited to the tasks to be accomplished, to be developed.
 
The development of programming languages has been a never-ending process since then, as experience allows better languages, ones with capabilties more suited to the tasks to be accomplished, to be developed.
Line 11: Line 13:
 
Programming languages are supported in two general ways:
 
Programming languages are supported in two general ways:
  
* [[compiler]]s translate the high-level language statements into a sequence of machine instructions which will perform the specified actions;
+
* [[compiler]]s translate the high-level language statements into a sequence of machine [[instruction]]s which will perform the specified actions;
  
* [[interpreter]]s read the [[source]] and perform the actions indicated therein directly.
+
* [[interpreter]]s read the [[source code]] and perform the actions indicated therein directly.
  
 
It is quite common for a language to have both an interpreter and a compiler, since each has advantages and disadvantages. A program which has been compiled generally runs faster, but interpreters usually provide superior debugging tools.
 
It is quite common for a language to have both an interpreter and a compiler, since each has advantages and disadvantages. A program which has been compiled generally runs faster, but interpreters usually provide superior debugging tools.
 +
 +
==See also==
 +
 +
* [[COBOL]]
 +
* [[FORTRAN]]
 +
* [[ALGOL]]
 +
* [[BCPL]]
 +
* [[C programming language|C]]
 +
* [[:Category: Languages]]
 +
 +
[[Category: Software Basics]]

Revision as of 23:02, 16 December 2018

A programming language is a human-readable means of giving a computer directions on what computations to perform.

The earliest programming languages were assembly languages, which were simply human-readble forms of the machine's basic object code. Rather than being in binary (expressed in whatever base), they instead uses mnemonics to indicate the instructions.

It soon became apparently that it was desirable to be able to allow people to give these directions in a form which was closer to the high-level tasks the humans were trying to accomplish.

For example, since an important use for early computers was to perform mathematical computations, FORTRAN (one of the earliest computer languages) allowed directions to be given in equations of a form familiar to engineers, etc.

The development of programming languages has been a never-ending process since then, as experience allows better languages, ones with capabilties more suited to the tasks to be accomplished, to be developed.

Compilers and interpreters

Programming languages are supported in two general ways:

  • compilers translate the high-level language statements into a sequence of machine instructions which will perform the specified actions;

It is quite common for a language to have both an interpreter and a compiler, since each has advantages and disadvantages. A program which has been compiled generally runs faster, but interpreters usually provide superior debugging tools.

See also