Programming languages are used for controlling the behavior of a machine (often a computer).
Like natural languages, programming languages follow the rules for syntax and semantics.
There are thousands of programming languagesAs of May 2006 Diarmuid Pigott's Encyclopedia of Computer Languages  hosted at Murdoch University, Australia lists 8512 computer languages.
and new ones are created every year.
Few languages ever become sufficiently popular that they are used by more than a few people, but professional programmers may use dozens of languages in a career.
Most programming languages are not standardized by an international (or national) standard, even widely used ones, such as Perl or Standard ML (despite the name).
Notable standardized programming languages include ALGOL, C, C++, JavaScript (under the name ECMAScript), Smalltalk, Prolog, Common Lisp, Scheme (IEEE standard), ISLISP, Ada, Fortran, COBOL, SQL and XQuery.
__TOC__ General comparison
The following table compares general and technical information for a selection of commonly used programming languages.
See the individual languages' articles for further information.
Type systems
Failsafe I/O and system calls
Most programming languages will print an error message or throw an exception if an input/output operation or other system call (e.g., chmod, kill) fails, unless the programmer has explicitly arranged for different handling of these events.
Thus, these languages fail safely in this regard.
Some (mostly older) languages require that the programmer explicitly add checks for these kinds of errors.
Psychologically, different cognitive biases (e.g., optimism bias) may affect novice and experts alike and these omissions can lead to erroneous behavior.
Expressiveness
The literature on programming languages contains an abundance of informal claims about their relative expressive power, but there is no framework for formalizing such statements nor for deriving interesting consequences.
This table provides two measures of expressiveness from two different sources.
An additional measure of expressiveness, in GZip bytes, can be found on the Computer Language Benchmarks Game.
Benchmarks
thumb|Barplot of log-time to produce a 1600² Mandelbrot  as reported in The Benchmarks Game
Benchmarks are designed to mimic a particular type of workload on a component or system.
The computer programs used for compiling some of the benchmark data in this section may not have been fully optimized, and the relevance of the data is disputed.
The most accurate benchmarks are those that are customized to your particular situation.
Other people's benchmark data may have some value to others, but proper interpretation brings many challenges.
The Computer Language Benchmarks Game site warns against over-generalizing from benchmark data, but contains a large number of micro-benchmarks of reader-contributed code snippets, with an interface that generates various charts and tables comparing specific programming languages and types of tests.
Timeline of specific language comparisons
1974 – Comparative Notes on Algol 68 and PL/I – S. H. Valentine – November 1974
1976 – Evaluation of ALGOL 68, JOVIAL J3B, Pascal, Simula 67, and TACPOL Versus TINMAN – Requirements for a Common High Order Programming Language.
1977 – A comparison of PASCAL and ALGOL 68 – Andrew S. Tanenbaum – June 1977.
1993 – Five Little Languages and How They Grew – BLISS, Pascal, ALGOL 68, BCPL & C – Dennis M. Ritchie – April 1993.
2009 – On Go – oh, go on – How well will Google's Go stand up against Brand X programming language?
– David Given – November 2009
See also
Comparison of basic instructions of programming languages
Comparison of programming languages (syntax)
Comparison of programming paradigms
Comparison of integrated development environments
Comparison of multi-paradigm programming languages
Measuring programming language popularity
TIOBE index
References
Further reading
