Programming languages are used for controlling the behavior of a machine (often a computer). Like natural languages, programming languages follow rules for syntax and semantics.

There are thousands of programming 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.

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.

LanguageOriginal purposeImperativeObject-orientedFunctionalProceduralGenericReflectiveOther paradigmsStandardized
1C:Enterprise programming languageApplication, RAD, business, general, web, mobileYesNoYesYesYesYesObject-based, Prototype-based programmingNo
ActionScriptApplication, client-side, webYesYesYesYesNoNoprototype-basedYes 1999-2003, ActionScript 1.0 with ES3, ActionScript 2.0 with ES3 and partial ES4 draft, ActionScript 3.0 with ES4 draft, ActionScript 3.0 with E4X
AdaApplication, embedded, realtime, systemYesYesNoYesYesNoConcurrent, distributedYes 1983, 2005, 2012, ANSI, ISO, GOST 27831-88
AldorHighly domain-specific, symbolic computingYesYesYesNoNoNoNo
ALGOL 58ApplicationYesNoNoNoNoNoNo
ALGOL 60ApplicationYesNoNoYesYesNoYes 1960, IFIP WG 2.1, ISO
ALGOL 68ApplicationYesNoYesYesYesNoConcurrentYes 1968, IFIP WG 2.1, GOST 27974-88,
Ateji PXParallel applicationNoYesNoNoNoNopi calculusNo
APLApplication, data processingYesYesYesYesYesYesArray-oriented, tacitYes 1989, ISO
Assembly languageGeneralYesNoNoNoNoNoAny, syntax is usually highly specific, related to the target processorYes 1985 IEEE 694-1985
AutoHotkeyGUI automation (macros), highly domain-specificYesYesNoYesNoNoNo
AutoItGUI automation (macros), highly domain-specificYesNoNoYesNoNoNo
BallerinaIntegration, agile, server-side, generalYesYesYesYesNoNoConcurrent, transactional, statically and strongly typed, diagrammatic–visualDe facto standard via Ballerina Language Specification
BashShell, scriptingYesNoNoYesNoNoOptionally POSIX.2
BASICApplication, educationYesNoNoYesNoNoYes 1983, ANSI, ISO, ECMA
BeanShellApplication, scriptingYesYesYesNoNoYesNo In progress, JCP
BLISSSystemNoNoNoYesNoNoNo
BlitzMaxApplication, gameYesYesNoYesNoYesNo
BooApplication, game scriptingNoYesNoNoNoNoNo
CApplication, system, general purpose, low-level operationsYesNoNoYesNoNoYes 1989, ANSI C89, ISO/IEC C90, ISO/IEC C95, ISO/IEC C99, ISO/IEC C11, ISO/IEC C17, ISO/IEC C2x
C++Application, systemYesYesYesYesYesYesConcurrentYes 1998, ISO/IEC C++98, ISO/IEC C++03, ISO/IEC C++11, ISO/IEC C++14, ISO/IEC C++17, ISO/IEC C++20, ISO/IEC C++23, ISO/IEC C++26
C#Application, RAD, business, client-side, general, server-side, web, game programmingYesYesYesYesYesYesConcurrent, structuredYes 2000, ECMA, ISO
CarbonExperimental successor language to C++, designed by Google for performance-critical softwareYesYesYesYesYesNoMulti-paradigmNo
ClarionGeneral, business, webYesYesYesNoNoNoUnknown
CleanGeneralNoNoYesNoYesNoNo
ClojureGeneralNoNoYesNoNoNoConcurrentNo
CLUGeneralYesYesNoYesYesNoNo
COBOLApplication, businessYesYesNoYesNoNoYes 1968 ANSI X3.23, 1974, 1985; ISO/IEC 1989:1985, 2002, 2014, 2023
CobraApplication, business, general, webYesYesYesNoYesYesNo
ColdFusion (CFML)WebNoYesNoYesNoNoNo
Common LispGeneralYesYesYesYesYesYesExtensible syntax, , syntactic macros, multiple dispatch, concurrentYes 1994, ANSI
COMAL 80EducationYesNoNoYesNoNoNo
CrystalGeneral purposeYesYesYesYesYesNoConcurrentNo
CurryApplicationNoNoYesNoYesNolazy evaluation, non-determinismDe facto standard via Curry Language Report
CythonApplication, general, numerical computingYesYesYesNoNoYesAspect-orientedNo
DApplication, systemYesYesYesYesYesYesGenerative, concurrentNo
DartApplication, web, server-side, mobile, IoTYesYesYesYesYesNoStructuredYes ECMA-408 standard
Delphi, Object PascalGeneral purposeYesYesYesYesYesYesUnknown
DylanApplicationNoYesYesNoNoNoNo
EiffelGeneral, application, business, client-side, server-side, web (EWF)YesYesYesNoYesYesDistributed ,Yes 2005, ECMA, ISO
ELANEducationYesNoNoYesNoNoStructured, stepwise refinementNo
ElixirApplication, distributedNoNoYesNoNoYesConcurrent, distributedNo
ErlangApplication, distributedNoNoYesNoNoYesConcurrent, distributedNo
EuphoriaApplicationNoNoNoYesNoYesNo
FactorGeneralYesNoCan be viewed asNoYesYesStack-orientedNo
FPNoNoYesNoNoNoNo
F#ApplicationYesYesYesYesYesYesNo
ForthGeneralYesNoNoYesNoYesStack-orientedYes 1994, ANSI
FortranApplication, numerical computingYesYesYesYesYesNoArray-based, vectorized, concurrent, native distributed/shared-memory parallelismYes 1966, ANSI 66, ANSI 77, MIL-STD-1753, ISO 90, ISO 95, ISO 2003, ISO/IEC 1539-1:2010 (2008), ISO/IEC JTC1/SC22/WG5 N2145 (2018)
FreeBASICApplication, numerical computingYesYesNoYesYesNoNo
GambasApplicationYesYesNoNoNoNoNo
Game Maker LanguageApplication, game programmingYesYesNoNoNoNoNo
GLBasicApplication, gamesYesYesNoYesNoNoSimple object-orientedNo
GoApplication, web, server-sideYesCan be viewed asCan be viewed asYesYesYesConcurrentDe facto standard via Go Language Specification
GosuApplication, general, scripting, webYesYesNoNoYesYesNo
GraphTalkApplicationNoYesNoNoNoNoLogicNo
GroovyApplication, general, scripting, webYesYesYesYesYesYesMeta-programmingNo In progress, JCP
HarbourApplication, business, data processing, general, webYesYesYesYesYesYesDeclarativeNo
HaskellApplicationNoNoYesNoYesNoLazy evaluationYes 2010, Haskell 2010
HaxeApplication, general, webYesYesYesNoYesYesNo
HyperTalkApplication, RAD, generalYesNoNoYesNoYesWeakly typedUnknown
IoApplication, host-driven scriptingYesYesNoNoNoNoNo
IPLGeneralNoNoYesNoNoNoUnknown
ISLISPGeneralYesYesYesNoYesNoYes 1997, 2007, ISO
JApplication, data processingYesYesYesYesYesYesArray-oriented, function-level, tacit, concurrentNo
JADEApplication, distributedYesYesNoNoNoNoNo
JavaApplication, business, client-side, general, mobile development, server-side, webYesYesYesYesYesYesConcurrentDe facto standard via Java Language Specification
JavaScriptClient-side, server-side, webYesYesYesYesNoYesprototype-basedYes ECMA-262 standard
JoyResearchNoNoYesNoNoNoStack-orientedNo
jq"awk for JSON"NoNoYesNoNoNoTacit, Backtracking, Streaming, PEGNo
JuliaGeneral, technical computingYesCan be viewed asYesYesYesYesMultiple dispatch, meta, scalar and array-oriented, parallel, concurrent, distributed ("cloud")De facto standard via Julia Documentation
KData processing, businessNoNoNoNoNoNoArray-oriented, tacitUnknown
KotlinApplication, general, mobile development, server-side, client-side, web, scripting, domain-specificYesYesYesYesYesYesConcurrentDe facto standard via Kotlin Language Specification
KshShell, scriptingYesYesNoYesNoNoSeveral variants, custom programmable, dynamic loadable modulesOptionally POSIX.2
LabVIEW (G)Application, industrial instrumentation-automationYesYesYesNoNoNoDataflow, visualNo
LispGeneralNoNoYesNoNoNoUnknown
LiveCodeApplication, RAD, generalYesYesNoYesNoYesWeakly typedNo
LogtalkArtificial intelligence, applicationNoYesNoNoNoYesLogicNo
Linden Scripting Language (LSL)Virtual worlds content scripting and animationYesNoNoYesNoNoScripts exist in in-world objectsDe facto reference is the Second Life implementation of LSL.
LuaApplication, embedded scriptingYesYesYesYesNoYesAspect-oriented, prototype-basedNo
MapleSymbolic computation, numerical computingYesYesYesYesNoNoDistributedNo
MathematicaSymbolic languageYesYesYesYesYesYesLogic, distributedNo
MATLABHighly domain-specific, numerical computingYesYesNoYesNoNoNo
Modula-2Application, systemYesNoNoNoYesNoYes 1996, ISO
Modula-3ApplicationYesYesNoNoYesNoNo
MUMPS (M)General, application, databasesYesApproved for next StandardNoYesPartially Thru Indirection and XecuteYesConcurrent, multi-user, NoSQL, transaction processingYes 1977 ANSI, 1995, ISO 2020
NimApplication, general, web, scripting, systemYesYesYesYesYesYesMultiple dispatch, concurrent, metaNo
OberonApplication, systemYesYesNoNoNoNoNo
Object PascalApplication, general, mobile app, webYesYesNoYesYesYesStructuredNo
Objective-CApplication, generalYesYesNoYesNoYesConcurrentNo
OCamlApplication, generalYesYesYesYesYesNoNo
OccamGeneralYesNoNoYesNoNoConcurrent, process-orientedNo
OpaWeb applicationsYesNoYesNoYesNoDistributedNo
OpenLispGeneral, Embedded Lisp EngineYesYesYesNoYesNoOptionally ISLISP
OxygeneApplicationYesYesNoNoYesNoNo
Oz-MozartApplication, distribution, educationYesYesYesNoNoNoConcurrent, logicNo
PascalApplication, educationYesNoNoYesNoNoYes 1983, ISO
PerlApplication, scripting, text processing, WebYesYesYesYesYesYesNo
PHPServer-side, web application, webYesYesYesYesNoYesDe facto standard via language specification and Requests for Comments (RFCs)
PL/IApplicationYesYesNoYesNoNoYes 1969, ECMA-50 (1976)
PlusApplication, system developmentYesNoNoYesNoNoNo
PostScriptGraphics, page descriptionYesNoNoYesNoNoConcatenative, stack-orientedDe facto standard via the PostScript Reference Manual
PowerShellAdministration, application, general, scriptingYesYesYesYesNoYesPipelineNo
PrologApplication, artificial intelligenceNoNoYesYesNoYesLogic, declarativeYes 1995, ISO/IEC 13211-1:1995, TC1 2007, TC2 2012, TC3 2017
PureBasicApplicationYesNoNoYesNoNoNo
PythonApplication, general, web, scripting, artificial intelligence, scientific computingYesYesYesYesYesYesAspect-orientedDe facto standard via Python Enhancement Proposals (PEPs)
RApplication, statisticsYesYesYesYesNoYesNo
RacketEducation, general, scriptingYesYesYesYesNoYesModular, logic, metaNo
RakuScripting, text processing, glueYesYesYesYesYesYesAspect-oriented, array, lazy evaluation, multiple dispatch, metaprogrammingNo
REALbasicApplicationNoNoNoYesNoNoUnknown
RebolDistributedYesYesYesYesNoYesDialectedNo
REXXScriptingYesYes (NetRexx and Object REXX dialects)NoYesNoNoYes 1996 (ANSI X3.274-1996)
RPGApplication, systemYesNoNoYesNoNoNo
RubyApplication, scripting, webYesYesYesNoNoYesAspect-orientedYes 2011(JIS X 3017), 2012(ISO/IEC 30170)
RustApplication, server-side, system, webYesCan be viewed asYesYesYesNoConcurrentDe facto standard by the official Rust releases
SApplication, statisticsYesYesYesYesNoNoNo
S-LangApplication, numerical, scriptingYesNoNoYesNoNoNo
ScalaApplication, general, parallel, distributed, webYesYesYesNoYesYesData-oriented programming, metaprogrammingDe facto standard via Scala Language Specification (SLS)
SchemeEducation, generalYesNoYesNoNoNometa, extensible-syntaxDe facto 1975-2013, R0RS, R1RS, R2RS, R3RS, R4RS, R5RS, R6RS, R7RS Small Edition
Seed7Application, general, scripting, webYesYesNoNoYesYesMulti-paradigm, extensible, structuredNo
SimulaEducation, generalYesYesNoNoNoNodiscrete event simulation, multi-threaded (quasi-parallel) program executionYes 1968
Small BasicApplication, education, gamesYesNoNoNoNoNoComponent-orientedNo
SmalltalkApplication, general, business, artificial intelligence, education, webYesYesYesYesNoYesConcurrent, declarativeYes 1998, ANSI
SNOBOLText processingNoNoNoNoNoNoUnknown
SpliceEmbedded, general, portabillityYesNoNoYesNoNoBytecode VMNo
Standard MLApplicationYesNoYesNoYesNoYes 1997, SML '97
SwiftApplication, generalYesYesYesYesYesYesConcurrent, declarative, protocol-orientedNo
TclApplication, scripting, webYesYesYesYesNoYesNo
V (Vlang)Application, general, system, game, web, server-sideYesCan be viewed asCan be viewed asYesYesYesConcurrentNo
Visual BasicApplication, RAD, education, business, general, (Includes VBA), office automationYesYesNoYesYesNoComponent-orientedNo
Visual Basic .NETApplication, RAD, education, web, business, generalYesYesYesYesYesYesStructured, concurrentNo
Visual FoxProApplicationYesYesNoYesNoNoData-centric, logicNo
Visual PrologApplicationYesYesYesNoNoNoDeclarative, logicNo
Wolfram LanguageSymbolic languageYesNoYesYesYesYesLogic, distributedNo
XLYesYesNoNoNoNoconcept programmingNo
XojoApplication, RAD, general, webYesYesNoYesNoYesNo
XPath/XQueryDatabases, data processing, scriptingNoNoYesNoNoNoTree-orientedYes 1999 W3C XPath 1, 2010 W3C XQuery 1, 2014 W3C XPath/XQuery 3.0
ZeekDomain-specific, applicationYesNoNoNoNoNoNo
ZigApplication, general, systemYesNoYesYesYesYesConcurrentNo
ZshShell, scriptingYesNoNoYesNoNoLoadable modulesOptionally POSIX.2

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 programmers explicitly add checks for these kinds of errors. Psychologically, different cognitive biases (e.g., optimism bias) may affect novices and experts alike and lead them to skip these checks. This can lead to erroneous behavior.

Failsafe I/O is a feature of 1C:Enterprise, Ada (exceptions), ALGOL (exceptions or return value depending on function), Ballerina, C#, Common Lisp ("conditions and restarts" system), Curry, D (throwing on failure), Erlang, Fortran, Go (unless result explicitly ignored), Gosu, Harbour, Haskell, ISLISP, Java, Julia, Kotlin, LabVIEW, Mathematica, Objective-C (exceptions), OCaml (exceptions), OpenLisp, PHP, Python, Raku, Rebol, Rexx (with optional signal on... trap handling), Ruby, Rust (unless result explicitly ignored), Scala, Smalltalk, Standard ML [citation needed], Swift ≥ 2.0 (exceptions), Tcl, Visual Basic, Visual Basic (.NET), Visual Prolog, Wolfram Language, Xojo, XPath/XQuery (exceptions), and Zeek.

No Failsafe I/O: AutoHotkey (global ErrorLevel must be explicitly checked), C, COBOL, Eiffel (it actually depends on the library and it is not defined by the language), GLBasic (will generally cause program to crash), RPG, Lua (some functions do not warn or throw exceptions), and Perl.

Some I/O checking is built in C++ (STL iostreams throw on failure but C APIs like stdio or POSIX do not) and Object Pascal, in Bash it is optional.

Expressiveness

LanguageStatements ratioLines ratio
C11
C++2.51
Fortran20.8
Java2.51.5
Perl66
Smalltalk66.25
Python66.5

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

Barplot of log-time to produce a 16002 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 & CDennis 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

To display all pages, subcategories and images click on the "►":
Lists of programming languages (19 P)List of programming languagesList of programming languages by typeLists of programming languagesList of programming languages for artificial intelligenceList of audio programming languagesList of BASIC dialectsList of C-family programming languagesList of CLI languagesList of concurrent and parallel programming languagesList of educational programming languagesGenerational list of programming languagesList of JVM languagesList of Lisp-family programming languagesList of open-source programming languagesNon-English-based programming languagesList of object-oriented programming languagesList of reflective programming languages and platformsTimeline of programming languagesUnisys MCP programming languages

Further reading

  • Cezzar, Ruknet (1995). . Artech House. ISBN 978-0-89006-812-0.