Content deleted Content added
HeyElliott (talk | contribs) ce |
m Undid revision 1305042110 by Bender the Bot (talk) bot error fixed |
||
(27 intermediate revisions by 18 users not shown) | |||
Line 1:
{{Short description|none}}
{{Original research|date=August 2009}}
{{Programming paradigms|state=collapsed}}▼
[[Programming language]]s can be grouped by the number and types of [[Programming paradigm|paradigms]] supported.
Line 10 ⟶ 9:
* [[Constraint programming]] – relations between variables are expressed as constraints (or constraint networks), directing allowable solutions (uses constraint satisfaction or [[simplex algorithm]])
* [[Dataflow|Dataflow programming]] – forced recalculation of formulas when data values change (e.g. [[spreadsheet]]s)
* [[Declarative programming]] – describes what computation should perform, without specifying detailed state changes
* [[Distributed computing|Distributed programming]] – have support for multiple autonomous computers that communicate via computer networks
* [[Functional programming]] – uses evaluation of mathematical functions and avoids state and mutable data
Line 18 ⟶ 17:
* [[Metaprogramming]] – writing programs that write or manipulate other programs (or themselves) as their data, or that do part of the work at compile time that would otherwise be done at runtime
** [[Template metaprogramming]] – metaprogramming methods in which a compiler uses templates to generate temporary source code, which is merged by the compiler with the rest of the source code and then compiled
** [[
* [[Object-oriented programming]] – uses data structures consisting of data fields and methods together with their interactions (objects) to design programs
** [[
** [[
* [[Pipeline programming]] – a simple syntax change to add syntax to nest function calls to language originally designed with none
* [[Rule-based programming]] – a network of rules of thumb that comprise a knowledge base and can be used for expert systems and problem deduction & resolution
* [[Visual programming language|Visual programming]] – manipulating program elements graphically rather than by specifying them textually (e.g. [[Simulink]]); also termed ''diagrammatic programming''<ref>{{cite book |last1=Bragg |first1=S.D. |last2=Driskill |first2=C.G. |date=20–22 September 1994 |chapter=Diagrammatic-graphical programming languages and DoD-STD-2167A |publisher=[[Institute of Electrical and Electronics Engineers]] (IEEE) |doi=10.1109/AUTEST.1994.381508 |title=Proceedings of AUTOTESTCON '94 (IEEEXplore) |pages=211–220 |isbn=978-0-7803-1910-3 |s2cid=62509261}}</ref>
{{clear}}
==Language overview==
{|class="wikitable sortable" style="font-size:75%;"▼
{{sticky header}}
|+ List of multi-paradigm programming languages ▼
▲{|class="wikitable sortable sticky-header" style="font-size:75%;"
|- style="font-size: 133%;"
! Language
! {{vert header|stp=1|{{tooltip|Paradigm count|Paradigm count}}}}
! {{vert header|stp=1|{{tooltip|Concurrent|Concurrent}}}}
! {{vert header|stp=1|{{tooltip|Constraints|Constraints}}}}
! {{vert header|stp=1|{{tooltip|Dataflow|Dataflow}}}}
! {{vert header|stp=1|{{tooltip|Declarative|Declarative}}}}
! {{vert header|stp=1|{{tooltip|Distributed|Distributed}}}}
! {{vert header|stp=1|{{tooltip|Functional|Functional}}}}
! {{vert header|stp=1|{{tooltip|Metaprogramming|Metaprogramming}}}}
! {{vert header|stp=1|{{tooltip|Generic|Generic}}}}
! {{vert header|stp=1|{{tooltip|Imperative|Imperative}}}}
! {{vert header|stp=1|{{tooltip|Logic|Logic}}}}
! {{vert header|stp=1|{{tooltip|Reflection|Reflection}}}}
! {{vert header|stp=1|{{tooltip|Object
! {{vert header|stp=1|{{tooltip|Pipelines|Pipelines}}}}
! {{vert header|stp=1|{{tooltip|Visual|Visual}}}}
! {{vert header|stp=1|{{tooltip|Rule-based|Rule-based}}}}
! Other
|-
| style="font-size: 133%;" | [[Ada (programming language)|Ada]]{{wbr}}<ref>[http://www.adaic.org/standards/05rm/html/RM-TTL.html Ada Reference Manual, ISO/IEC 8652:2005(E) Ed. 3], [http://www.adaic.org/standards/05rm/html/RM-9.html Section 9: Tasks and Synchronization]</ref>{{wbr}}<ref>[http://www.adaic.org/standards/05rm/html/RM-TTL.html Ada Reference Manual, ISO/IEC 8652:2005(E) Ed. 3] [http://www.adaic.org/standards/05rm/html/RM-E.html Annex E: Distributed Systems]</ref>{{wbr}}<ref>[http://www.adaic.org/standards/05rm/html/RM-TTL.html Ada Reference Manual, ISO/IEC 8652:2005(E) Ed. 3], [http://www.adaic.org/standards/05rm/html/RM-12.html Section 12: Generic Units]</ref>{{wbr}}<ref>[http://www.adaic.org/standards/05rm/html/RM-TTL.html Ada Reference Manual, ISO/IEC 8652:2005(E) Ed. 3], [http://www.adaic.org/standards/05rm/html/RM-6.html Section 6: Subprograms]</ref>{{wbr}}<ref>[http://www.adaic.org/standards/05rm/html/RM-TTL.html Ada Reference Manual, ISO/IEC 8652:2005(E) Ed. 3], [http://www.adaic.org/standards/05rm/html/RM-3-9.html 3.9 Tagged Types and Type Extensions]</ref> || 5
| {{yes}}{{wbr}}<ref group="a" name="rend-mon">rendezvous and monitor-like based</ref> || {{
|-
| style="font-size: 133%;" | [[Algebraic Logic Functional programming language|ALF]] || 2
| {{
|-
| style="font-size: 133%;" | [[AmigaE]]<br/>{{Citation needed |date=March 2007}} || 2
| {{
|-
| style="font-size: 133%;" | [[APL (programming language)|APL]] || 3
| {{
|-
| style="font-size: 133%;" | [[BETA (programming language)|BETA]]<br/>{{Citation needed |date=March 2007}} || 3
| {{
|-
| style="font-size: 133%;" | [[C++]] || 7 (15)
| {{yes}}{{wbr}}<ref>[http://en.cppreference.com/w/cpp/thread Thread support]</ref>{{wbr}}<ref>[http://en.cppreference.com/w/cpp/atomic Atomics support]</ref>{{wbr}}<ref>[https://cppandbeyond.wordpress.com/2011/04/11/session-announcement-the-c0x-memory-model-and-why-you-care Memory model]</ref> || {{partial|Library}}{{wbr}}<ref>[http://www.gecode.org/ Gecode]</ref> || {{partial|Library}}{{wbr}}<ref>[http://www.accellera.org/downloads/standards/systemc/about_systemc/ SystemC]</ref>{{wbr}}<ref>[http://www.boost.org/libs/iostreams/ Boost.Iostreams]</ref> || {{partial|Library}}{{wbr}}<ref>[http://code.google.com/p/boolinq/ Boolinq]</ref>{{wbr}}<ref>{{Cite web |url=https://www.cs.technion.ac.il/~lkeren/scp.pdf |title=AraRat |access-date=2019-09-15 |archive-date=2019-08-19 |archive-url=https://web.archive.org/web/20190819105358/http://www.cs.technion.ac.il/~lkeren/scp.pdf |url-status=dead }}</ref> || {{partial|Library}}{{wbr}}<ref>[http://www.open-mpi.org/ OpenMPI]</ref>{{wbr}}<ref>[http://www.boost.org/libs/mpi/ Boost.MPI]</ref> || {{yes}} || {{yes}}{{wbr}}<ref>[http://www.boost.org/libs/mpl/ Boost.MPL]</ref> || {{yes}}{{wbr}}<ref group="a" name="temp-meta">
|-
| style="font-size: 133%;" | [[C Sharp (programming language)|C#]] || 6 (7)
| {{yes}} || {{
|-
| style="font-size: 133%;" | [[ChucK]]<br/>{{Citation needed |date=March 2007}} || 3
| {{yes}} || {{
|-
| style="font-size: 133%;" | [[Claire (programming language)|Claire]] || 2
| {{
|-
| style="font-size: 133%;" | [[Clojure]] || 5
| {{yes}}{{wbr}}<ref>[https://clojure.org/about/concurrent_programming Clojure - Concurrent Programming]</ref>{{wbr}}<ref>[https://github.com/clojure/core.async Clojure - core.async]</ref> || {{
|-
| style="font-size: 133%;" | [[Common Lisp]] || 7 (14)
| {{partial|Library}}{{wbr}}<ref>
|-
| style="font-size: 133%;" | [[Curl (programming language)|Curl]] || 5
| {{
|-
| style="font-size: 133%;" | [[Curry (programming language)|Curry]] || 4
| {{yes}} || {{yes}} || {{
|-
| style="font-size: 133%;" | [[D (programming language)|D]] (version 2.0){{wbr}}<ref>[http://www.digitalmars.com/d/2.0/comparison.html D Language Feature Table]</ref>{{wbr}}<ref>[http://www.digitalmars.com/d/2.0/phobos/std_algorithm.html Phobos std.algorithm]</ref> || 7
| {{yes}}{{wbr}}<ref group="a" name="actor"/> || {{
|-
| style="font-size: 133%;" | [[Delphi (software)|Delphi]] || 3
| {{
|-
| style="font-size: 133%;" | [[Dylan (programming language)|Dylan]]<br/>{{Citation needed |date=March 2007}} || 3
| {{
|-
| style="font-size: 133%;" | [[E (programming language)|E]] || 3
| {{yes}} || {{
|-
| style="font-size: 133%;" | [[ECMAScript]]{{wbr}}<ref>[http://www.crockford.com/javascript/little.html The Little JavaScripter] demonstrates fundamental commonality with Scheme, a functional language.</ref>{{wbr}}<ref>[http://mckoss.com/jscript/object.htm Object-Oriented Programming in JavaScript] {{Webarchive |url=https://web.archive.org/web/20190210070220/http://mckoss.com/jscript/object.htm |date=2019-02-10}} gives an overview of object-oriented programming techniques in JavaScript.</ref> ([[ActionScript]], [[ECMAScript for XML|E4X]], [[JavaScript]], [[JScript]]) || 4 (5)
| {{partial
|-
| style="font-size: 133%;" | [[Erlang (programming language)|Erlang]] || 3
| {{yes}} || {{
|-
| style="font-size: 133%;" | [[Elixir (programming language)|Elixir]] || 4
| {{yes}} || {{
|-
| style="font-size: 133%;" | [[Elm (programming language)|Elm]] || 6
| {{yes}} || {{
|-
| style="font-size: 133%;" | [[F Sharp (programming language)|F#]] || 7 (8)
| {{yes}}{{wbr}}<ref group="a" name="actor">actor programming</ref> || {{
|-
| style="font-size: 133%;" | [[Fortran]] || 4 (5)
| {{yes}} || {{
|-
| style="font-size: 133%;" |[[Go (programming language)|Go]] || 4
| {{yes}} || {{
|-
| style="font-size: 133%;" | [[Haskell]] || 8 (15)
| {{yes}} || {{partial|Library}}{{wbr}}<ref>{{Cite web |url=https://hackage.haskell.org/package/hswip |title=Prolog embedding |website=Haskell.org}}</ref> || {{partial|Library}}{{wbr}}<ref>{{Cite web |url=https://wiki.haskell.org/Functional_Reactive_Programming |title=Functional Reactive Programming |website=HaskellWiki}}</ref> || {{yes}} || {{partial|Library}}{{wbr}}<ref>[https://haskell-distributed.github.io/ Cloud Haskell]</ref> || {{yes}} ([[lazy evaluation|lazy]]) ([[Purely functional programming|pure]]){{wbr}}<ref group="a" name="pure-func">purely functional</ref> || {{yes}}{{wbr}}<ref>{{Cite web |url=https://wiki.haskell.org/Template_Haskell |title=Template Haskell |website=HaskellWiki}}</ref> || {{yes}} || {{yes}} || {{partial|Library}}{{wbr}}<ref>{{Cite web |url=https://hackage.haskell.org/package/logict |title=Logict: A backtracking logic-programming monad |website=Haskell.org}}</ref> || {{
|- |
| style="font-size: 133%;" | [[Io (programming language)|Io]] || 4
| {{yes}}{{wbr}}<ref group="a" name="actor"/> || {{
|-
| style="font-size: 133%;" | [[J (programming language)|J]]<br/>{{Citation needed |date=March 2007}} || 3
| {{
|-
| style="font-size: 133%;" | [[Java (programming language)|Java]] || 6
| {{yes}} || {{partial|Library}}{{wbr}}<ref>https://jcp.org/en/jsr/detail?id=331 JSR 331: Constraint Programming API</ref> || {{partial|Library}}{{wbr}}<ref>https://github.com/GoogleCloudPlatform/DataflowJavaSDK Google Cloud Platform Dataflow SDK</ref> || {{
|-
| style="font-size: 133%;" | [[Julia (programming language)|Julia]] || 9 (17)
| {{yes}} || {{partial|Library}}{{wbr}}<ref>{{cite web |title=JuliaOpt/JuMP.jl |url=https://github.com/JuliaOpt/JuMP.jl |website=GitHub |publisher=JuliaOpt |access-date=12 February 2020 |date=11 February 2020}}</ref> || {{partial|Library}}{{wbr}}<ref>{{Cite web |url=https://github.com/MikeInnes/DataFlow.jl |title=GitHub - MikeInnes/DataFlow.jl |website=[[GitHub]] |date=2019-01-15}}</ref>{{wbr}}<ref>{{Cite web |url=https://github.com/JuliaGizmos/Reactive.jl |title=GitHub - JuliaGizmos/Reactive.jl: Reactive programming primitives for Julia |website=[[GitHub]] |date=2018-12-28}}</ref> || {{partial|Library}}{{wbr}}<ref>https://github.com/davidanthoff/Query.jl Query almost anything in julia</ref> || {{yes}} || {{yes}} ([[eager evaluation|eager]]) || {{yes}} || {{yes}} || {{yes}} || {{partial|Library}}{{wbr}}<ref>https://github.com/lilinjn/LilKanren.jl A collection of Kanren implementations in Julia</ref> || {{yes}} || {{
|-
| style="font-size: 133%;" |[[Kotlin (programming language)|Kotlin]] || 8
| {{yes}} || {{
|- |
| style="font-size: 133%;" | [[LabVIEW]] || 4
| {{yes}} || {{
|-
|
| {{
|-
| style="font-size: 133%;" | [[LispWorks]] (version 6.0 with support for symmetric multi-processing, rules, logic ([[Prolog]]), [[Common Object Request Broker Architecture|CORBA]]) || 9
| {{yes}} || {{
|-
| style="font-size: 133%;" | [[Lua (programming language)|Lua]]<br/>{{Citation needed |date=March 2007}} || 3
| {{
|-
| style="font-size: 133%;" | [[MATLAB]] || 6 (10)
| {{partial|Toolbox}}{{wbr}}<ref>{{cite web |title=Execute loop iterations in parallel |url=http://mathworks.com/help/distcomp/parfor.html |website=mathworks.com |access-date=21 October 2016}}</ref> || {{partial|Toolbox}}{{wbr}}<ref>{{cite web |title=Write Constraints |url=https://mathworks.com/help/optim/write-constraints.html |website=mathworks.com |access-date=21 October 2016}}</ref> || {{yes}}{{wbr}}<ref>{{cite web |title=Getting Started with SimEvents |url=https://mathworks.com/help/simevents/getting-started-with-simevents.html |website=mathworks.com |access-date=21 October 2016}}</ref> || {{
|-
| style="font-size: 133%;" | [[Nemerle]] || 7
| {{yes}} || {{
|-
| style="font-size: 133%;" | [[Object Pascal]] || 4
| {{yes}} || {{
|-
| style="font-size: 133%;" | [[OCaml]] || 4
| {{
|-
| style="font-size: 133%;" | [[Oz (programming language)|Oz]] || 11
| {{yes}} || {{yes}} || {{yes}} || {{yes}} || {{yes}} || {{yes}} || {{
|-
| style="font-size: 133%;" | [[Perl]]<br/>{{Citation needed |date=March 2007}} || 8 (9)
| {{yes}}{{wbr}}<ref>[http://perldoc.perl.org/threads.html interpreter based threads]</ref> || {{
|-
| style="font-size: 133%;" | [[PHP]]{{wbr}}<ref>[http://php.net/manual/en/index.php PHP Manual], [http://php.net/manual/en/language.functions.php Chapter 17. Functions]</ref>{{wbr}}<ref>[http://php.net/manual/en/index.php PHP Manual], [http://php.net/manual/en/language.oop5.php Chapter 19. Classes and Objects (PHP 5)]</ref>{{wbr}}<ref>[http://php.net/manual/en/index.php PHP Manual], [http://docs.php.net/functions.anonymous Anonymous functions]</ref> || 4
| {{
|-
| style="font-size: 133%;" | [[Poplog]] || 3
| {{
|-
| style="font-size: 133%;" | [[Prograph]] || 3
| {{
|-
| style="font-size: 133%;" | [[Python (programming language)|Python]] || 5 (10)
| {{partial|Library}}{{wbr}}<ref>{{cite web |title=Parallel Processing and Multiprocessing in Python |url=https://wiki.python.org/moin/ParallelProcessing |website=Python Wiki |access-date=21 October 2016}}</ref>{{wbr}}<ref>{{cite web |title=threading — Higher-level threading interface |url=https://docs.python.org/2/library/threading.html |website=docs.python.org |access-date=21 October 2016}}</ref>
| {{partial|Library}}{{wbr}}<ref>{{cite web |title=python-constraint |url=https://pypi.python.org/pypi/python-constraint |website=pypi.python.org |access-date=21 October 2016}}</ref>
| {{
| {{
| {{partial|Library}}{{wbr}}<ref>{{cite web |title=DistributedProgramming |url=https://wiki.python.org/moin/DistributedProgramming |website=Python Wiki |access-date=21 October 2016}}</ref>
| {{yes}}
| {{yes}}{{wbr}}<ref>{{cite web |title=Chapter 9. Metaprogramming |url=http://chimera.labs.oreilly.com/books/1230000000393/ch09.html |website=chimera.labs.oreilly.com |access-date=22 October 2016 |archive-url=https://web.archive.org/web/20161023050954/http://chimera.labs.oreilly.com/books/1230000000393/ch09.html |archive-date=23 October 2016 |url-status=dead}}</ref>{{wbr}}<ref>{{cite web |title=Metaprogramming |url=https://python-3-patterns-idioms-test.readthedocs.io/en/latest/Metaprogramming.html |website=readthedocs.io |access-date=22 October 2016}}</ref>
| {{yes}}{{wbr}}<ref>{{cite web |title=PEP 443 – Single-dispatch generic functions |url=https://www.python.org/dev/peps/pep-0443/ |website=python.org |access-date=22 October 2016}}</ref>{{wbr}}<ref>{{cite web |title=PEP 484 – Type Hints |url=https://www.python.org/dev/peps/pep-0484/#generics |website=python.org |access-date=22 October 2016}}</ref> || {{yes}} || {{partial|Library}}{{wbr}}<ref>{{cite web |url=https://sites.google.com/site/pydatalog/ |title=PyDatalog |access-date=22 October 2016}}</ref> || {{yes}} || {{yes}}{{wbr}}<ref group="a" name="class"/>
| {{
|-
| style="font-size: 133%;" | [[R (programming language)|R]] || 4 (6)
| {{partial|Library}}{{wbr}}<ref>{{cite web |title=Futureverse |url=https://www.futureverse.org/}}</ref> || {{
|-
| style="font-size: 133%;" | [[Racket (programming language)|Racket]] || 10
| {{yes}}{{wbr}}<ref>[https://docs.racket-lang.org/guide/concurrency.html Racket Guide: Concurrency and Synchronization]</ref> || {{yes}}{{wbr}}<ref>[https://docs.racket-lang.org/rosette-guide/ The Rosette Guide]</ref> || {{yes}}{{wbr}}<ref>[https://docs.racket-lang.org/frtime/ FrTime: A Language for Reactive Programs]</ref> || {{
|-
| style="font-size: 133%;" | [[Raku (programming language)|Raku]] || 10
| {{yes}}{{wbr}}<ref>[https://docs.perl6.org/language/concurrency Channels and other mechanisms]</ref> || {{
|-
| style="font-size: 133%;" | [[ROOP (programming language)|ROOP]] || 3
| {{
|-
| style="font-size: 133%;" | [[Ruby (programming language)|Ruby]] || 5
| {{
|-
| style="font-size: 133%;" | [[Rust (programming language)|Rust]] (version 1.0.0-alpha) || 6
| {{yes}}{{wbr}}<ref group="a" name="actor"/> || {{
|-
| style="font-size: 133%;" | [[Sather]]<br/>{{Citation needed |date=March 2007}} || 2
| {{
|-
| style="font-size: 133%;" | [[Scala (programming language)|Scala]]{{wbr}}<ref>[http://www.scala-lang.org/sites/default/files/linuxsoft_archives/docu/files/ScalaOverview.pdf An Overview of the Scala Programming Language]</ref>{{wbr}}<ref>[https://wayback.archive-it.org/all/20171003043151/http://www.scala-lang.org/sites/default/files/linuxsoft_archives/docu/files/ScalaReference.pdf Scala Language Specification]</ref> || 9
| {{yes}}{{wbr}}<ref group="a" name="actor">actor programming</ref> || {{
|-
| style="font-size: 133%;" | [[Simula]]<br/>{{Citation needed |date=March 2007}} || 2
| {{
|-
| style="font-size: 133%;" | [[SISAL]] || 3
| {{yes}} || {{
|-
| style="font-size: 133%;" | [[Spreadsheet]]s || 2
| {{
|-
| style="font-size: 133%;" | [[Swift (programming language)|Swift]] || 7
| {{yes}} || {{
|-
| style="font-size: 133%;" | [[Tcl]] with Snit extension
| {{
|-
| style="font-size: 133%;" | [[Visual Basic .NET]] || 6 (7)
| {{yes}} || {{
|-
| style="font-size: 133%;" | [[Windows PowerShell]] || 6
| {{
|-
| style="font-size: 133%;" | [[Wolfram Language]] & [[Mathematica]] || 13{{wbr}}<ref>[http://www.wolfram.com/language/for-experts/ Notes for Programming Language Experts], Wolfram Language Documentation.</ref> (14)
| {{yes}} || {{yes}} || {{yes}} || {{yes}} || {{yes}} || {{yes}} || {{yes}} || {{yes}} || {{yes}} || {{yes}} || {{yes}} || {{yes}} || {{yes}}{{wbr}}<ref>[https://reference.wolfram.com/language/tutorial/ExternalPrograms.html External Programs], Wolfram Language Documentation.</ref> || {{
|}
<!-- Row Template:
|-
| lang || count || concurrent || constrain || dataf || decl || dist || func || meta || generic || imp || logic || reflect || OO || pipeline || visual || rules || other
{{yes}} {{
-->
Line 259 ⟶ 260:
* Jim Coplien, ''Multiparadigm Design for C++'', Addison-Wesley Professional, 1998.
{{Types of programming languages}}
|