Comparison of multi-paradigm programming languages

From Wikipedia, the free encyclopedia

Template:Short description

Page Module:Message box/ambox.css has no content.

Programming languages can be grouped by the number and types of paradigms supported.

Paradigm summaries

A concise reference for the programming paradigms listed in this article.

  • Concurrent programming – have language constructs for concurrency, these may involve multi-threading, support for distributed computing, message passing, shared resources (including shared memory), or futures
    • Actor programming – concurrent computation with actors that make local decisions in response to the environment (capable of selfish or competitive behaviour)
  • Constraint programming – relations between variables are expressed as constraints (or constraint networks), directing allowable solutions (uses constraint satisfaction or simplex algorithm)
  • Dataflow programming – forced recalculation of formulas when data values change (e.g. spreadsheets)
  • Declarative programming – describes what computation should perform, without specifying detailed state changes cf. imperative programming (functional and logic programming are major subgroups of declarative programming)
  • 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
  • Generic programming – uses algorithms written in terms of to-be-specified-later types that are then instantiated as needed for specific types provided as parameters
  • Imperative programming – explicit statements that change a program state
  • Logic programming – uses explicit mathematical logic for programming
  • 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
    • Reflective programming – metaprogramming methods in which a program modifies or extends itself
  • Object-oriented programming – uses data structures consisting of data fields and methods together with their interactions (objects) to design programs
    • Class-based – object-oriented programming in which inheritance is achieved by defining classes of objects, versus the objects themselves
    • Prototype-based – object-oriented programming that avoids classes and implements inheritance via cloning of instances
  • 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 – manipulating program elements graphically rather than by specifying them textually (e.g. Simulink); also termed diagrammatic programming[1]

Language overview

Template:Sticky header

See also

Notes

Page Template:Reflist/styles.css has no content.

  1. ^ rendezvous and monitor-like based
  2. ^ a b c d e f g h i j k l m n o p q r s t u v w x y z aa ab ac ad ae af ag ah ai class-based
  3. ^ a b c d e template metaprogramming
  4. ^ a b c using TPL Dataflow
  5. ^ only lambda support (lazy functional programming)
  6. ^ using TPL Dataflow
  7. ^ a b c using Reactive Extensions (Rx)
  8. ^ multiple dispatch, method combinations
  9. ^ a b c d e actor programming
  10. ^ promises, native extensions
  11. ^ using Node.js' cluster module or child_process.fork method, web workers in the browser, etc.
  12. ^ a b c d Prototype-based
  13. ^ using Reactive Extensions (RxJS)
  14. ^ in Node.js via their events module
  15. ^ in browsers via their native EventTarget API
  16. ^ a b c purely functional
  17. ^ parameterized classes
  18. ^ immutable
  19. ^ Uses structs with function polymorphism and multiple dispatch
  20. ^ Akka Script error: No such module "webarchive".

Citations

Page Template:Reflist/styles.css has no content.

  1. ^ Page Module:Citation/CS1/styles.css has no content.Bragg, S.D.; Driskill, C.G. (20–22 September 1994). "Diagrammatic-graphical programming languages and DoD-STD-2167A". Proceedings of AUTOTESTCON '94 (Facebook. Institute of Electrical and Electronics Engineers (IEEE). pp. 211–220. doi:10.1109/AUTEST.1994.381508. ISBN 978-0-7803-1910-3. S2CID 62509261.
  2. ^ Ada Reference Manual, ISO/IEC 8652:2005(E) Ed. 3, Section 9: Tasks and Synchronization
  3. ^ Ada Reference Manual, ISO/IEC 8652:2005(E) Ed. 3 Annex E: Distributed Systems
  4. ^ Ada Reference Manual, ISO/IEC 8652:2005(E) Ed. 3, Section 12: Generic Units
  5. ^ Ada Reference Manual, ISO/IEC 8652:2005(E) Ed. 3, Section 6: Subprograms
  6. ^ Ada Reference Manual, ISO/IEC 8652:2005(E) Ed. 3, 3.9 Tagged Types and Type Extensions
  7. ^ Thread support
  8. ^ Atomics support
  9. ^ Memory model
  10. ^ Gecode
  11. ^ SystemC
  12. ^ Boost.Iostreams
  13. ^ Boolinq
  14. ^ Page Module:Citation/CS1/styles.css has no content."AraRat" (PDF). Archived from the original (PDF) on 2019-08-19. Retrieved 2019-09-15.
  15. ^ OpenMPI
  16. ^ Boost.MPI
  17. ^ Boost.MPL
  18. ^ LC++
  19. ^ Castor Script error: No such module "webarchive".
  20. ^ Reflect Library
  21. ^ N3534
  22. ^ Boost.Spirit
  23. ^ Decider
  24. ^ Zen
  25. ^ LINQ
  26. ^ Orleans
  27. ^ WCF
  28. ^ Reflection
  29. ^ Source generators
  30. ^ Guan
  31. ^ NetPrints
  32. ^ RulesEngine
  33. ^ Clojure - Concurrent Programming
  34. ^ Clojure - core.async
  35. ^ Clojure - Functional Programming
  36. ^ Clojure - Macros
  37. ^ Clojure - core.logic
  38. ^ Clojure - Threading Macros Guide
  39. ^ Multimethods and Hierarchies
  40. ^ Agents and Asynchronous Actions
  41. ^ Page Module:Citation/CS1/styles.css has no content."concurrency". CLiki.
  42. ^ [1] constraint programming inside CL through extensions
  43. ^ [2] dataflow extension
  44. ^ [3] by creating DSLs using the built-in metaprogramming; also see note on functional, constraint and logic paradigms, which are part of declarative
  45. ^ [4] MPI, etc via language extensions
  46. ^ template metaprogramming using macros (see C++)
  47. ^ [5] [6] [7] Prolog implemented as a language extension
  48. ^ Common Lisp Object System see Wikipedia article on CLOS, the Common Lisp Object System.
  49. ^ implemented by the user via a short macro, example of implementation
  50. ^ - Visual programming tool based on Common Lisp
  51. ^ [8] rule-based programming extension
  52. ^ [9] Script error: No such module "webarchive". through the Meta Object Protocol
  53. ^ D Language Feature Table
  54. ^ Phobos std.algorithm
  55. ^ D language String Mixins
  56. ^ The Little JavaScripter demonstrates fundamental commonality with Scheme, a functional language.
  57. ^ Object-Oriented Programming in JavaScript Script error: No such module "webarchive". gives an overview of object-oriented programming techniques in JavaScript.
  58. ^ Page Module:Citation/CS1/styles.css has no content."React – A JavaScript library for building user interfaces". 2019-04-08.
  59. ^ Page Module:Citation/CS1/styles.css has no content."TNG-Hooks". GitHub. 2019-04-08.
  60. ^ Page Module:Citation/CS1/styles.css has no content."Lodash documentation". 2019-04-08.
  61. ^ Page Module:Citation/CS1/styles.css has no content."mori". 2019-04-08.
  62. ^ Page Module:Citation/CS1/styles.css has no content."TNG-Hooks". GitHub. 2019-04-08.
  63. ^ Page Module:Citation/CS1/styles.css has no content."Prolog embedding". Haskell.org.
  64. ^ Page Module:Citation/CS1/styles.css has no content."Functional Reactive Programming". HaskellWiki.
  65. ^ Cloud Haskell
  66. ^ Page Module:Citation/CS1/styles.css has no content."Template Haskell". HaskellWiki.
  67. ^ Page Module:Citation/CS1/styles.css has no content."Logict: A backtracking logic-programming monad". Haskell.org.
  68. ^ Page Module:Citation/CS1/styles.css has no content.Kollmansberger, Steve; Erwig, Martin (30 May 2006). "Haskell Rules: Embedding Rule Systems in Haskell" (PDF). Oregon State University.
  69. ^ https://jcp.org/en/jsr/detail?id=331 JSR 331: Constraint Programming API
  70. ^ https://github.com/GoogleCloudPlatform/DataflowJavaSDK Google Cloud Platform Dataflow SDK
  71. ^ Page Module:Citation/CS1/styles.css has no content."JuliaOpt/JuMP.jl". GitHub. JuliaOpt. 11 February 2020. Retrieved 12 February 2020.
  72. ^ Page Module:Citation/CS1/styles.css has no content."GitHub - MikeInnes/DataFlow.jl". GitHub. 2019-01-15.
  73. ^ Page Module:Citation/CS1/styles.css has no content."GitHub - JuliaGizmos/Reactive.jl: Reactive programming primitives for Julia". GitHub. 2018-12-28.
  74. ^ https://github.com/davidanthoff/Query.jl Query almost anything in julia
  75. ^ https://github.com/lilinjn/LilKanren.jl A collection of Kanren implementations in Julia
  76. ^ Page Module:Citation/CS1/styles.css has no content."GitHub - abeschneider/PEGParser.jl: PEG Parser for Julia". GitHub. 2018-12-03.
  77. ^ Page Module:Citation/CS1/styles.css has no content."GitHub - gitfoxi/Parsimonious.jl: A PEG parser generator for Julia". GitHub. 2017-08-03.
  78. ^ Lazy https://github.com/MikeInnes/Lazy.jl
  79. ^ Page Module:Citation/CS1/styles.css has no content."Execute loop iterations in parallel". mathworks.com. Retrieved 21 October 2016.
  80. ^ Page Module:Citation/CS1/styles.css has no content."Write Constraints". mathworks.com. Retrieved 21 October 2016.
  81. ^ Page Module:Citation/CS1/styles.css has no content."Getting Started with SimEvents". mathworks.com. Retrieved 21 October 2016.
  82. ^ Page Module:Citation/CS1/styles.css has no content."Execute loop iterations in parallel". mathworks.com. Retrieved 21 October 2016.
  83. ^ Page Module:Citation/CS1/styles.css has no content."Execute MATLAB expression in text - MATLAB eval". mathworks.com. Retrieved 21 October 2016.
  84. ^ Page Module:Citation/CS1/styles.css has no content."Determine class of object". mathworks.com. Retrieved 21 October 2016.
  85. ^ Page Module:Citation/CS1/styles.css has no content."Class Metadata". mathworks.com. Retrieved 21 October 2016.
  86. ^ Page Module:Citation/CS1/styles.css has no content."Object-Oriented Programming". mathworks.com. Retrieved 21 October 2016.
  87. ^ Page Module:Citation/CS1/styles.css has no content."Simulink". mathworks.com. Retrieved 21 October 2016.
  88. ^ interpreter based threads
  89. ^ Higher Order Perl
  90. ^ PHP Manual, Chapter 17. Functions
  91. ^ PHP Manual, Chapter 19. Classes and Objects (PHP 5)
  92. ^ PHP Manual, Anonymous functions
  93. ^ Page Module:Citation/CS1/styles.css has no content."Parallel Processing and Multiprocessing in Python". Python Wiki. Retrieved 21 October 2016.
  94. ^ Page Module:Citation/CS1/styles.css has no content."threading — Higher-level threading interface". docs.python.org. Retrieved 21 October 2016.
  95. ^ Page Module:Citation/CS1/styles.css has no content."python-constraint". pypi.python.org. Retrieved 21 October 2016.
  96. ^ Page Module:Citation/CS1/styles.css has no content."DistributedProgramming". Python Wiki. Retrieved 21 October 2016.
  97. ^ Page Module:Citation/CS1/styles.css has no content."Chapter 9. Metaprogramming". chimera.labs.oreilly.com. Archived from the original on 23 October 2016. Retrieved 22 October 2016.
  98. ^ Page Module:Citation/CS1/styles.css has no content."Metaprogramming". readthedocs.io. Retrieved 22 October 2016.
  99. ^ Page Module:Citation/CS1/styles.css has no content."PEP 443 – Single-dispatch generic functions". python.org. Retrieved 22 October 2016.
  100. ^ Page Module:Citation/CS1/styles.css has no content."PEP 484 – Type Hints". python.org. Retrieved 22 October 2016.
  101. ^ Page Module:Citation/CS1/styles.css has no content."PyDatalog". Retrieved 22 October 2016.
  102. ^ Page Module:Citation/CS1/styles.css has no content."Futureverse".
  103. ^ Page Module:Citation/CS1/styles.css has no content."future batchtools".
  104. ^ Page Module:Citation/CS1/styles.css has no content."Magrittr: A Forward Pipe Operator for R". cran.r-project.org\access-date=13 July 2017. 17 November 2020.
  105. ^ Racket Guide: Concurrency and Synchronization
  106. ^ The Rosette Guide
  107. ^ FrTime: A Language for Reactive Programs
  108. ^ Racket Guide: Distributed Places
  109. ^ Lazy Racket
  110. ^ Channels and other mechanisms
  111. ^ Page Module:Citation/CS1/styles.css has no content."Problem Solver module".
  112. ^ Feed operator
  113. ^ https://github.com/perl6/doc/issues/1744#issuecomment-360565196 Cro module
  114. ^ Page Module:Citation/CS1/styles.css has no content."Meta-programming: What, why and how". 2011-12-14.
  115. ^ https://perl6advent.wordpress.com/2009/12/18/day-18-roles/ Parametrized Roles
  116. ^ Page Module:Citation/CS1/styles.css has no content."Meta-object protocol (MOP)".
  117. ^ https://docs.perl6.org/language/classtut Classes and Roles
  118. ^ Page Module:Citation/CS1/styles.css has no content."The Rust macros guide". Rust. Retrieved 19 January 2015.
  119. ^ Page Module:Citation/CS1/styles.css has no content."The Rust compiler plugins guide". Rust. Retrieved 19 January 2015.
  120. ^ The Rust Reference §6.1.3.1
  121. ^ An Overview of the Scala Programming Language
  122. ^ Scala Language Specification
  123. ^ Page Module:Citation/CS1/styles.css has no content."Tcl Programming/Introduction". en.wikibooks.org. Retrieved 22 October 2016.
  124. ^ Page Module:Citation/CS1/styles.css has no content."TCLLIB - Tcl Standard Library: snitfaq". sourceforge.net. Retrieved 22 October 2016.
  125. ^ Notes for Programming Language Experts, Wolfram Language Documentation.
  126. ^ External Programs, Wolfram Language Documentation.

References

  • Jim Coplien, Multiparadigm Design for C++, Addison-Wesley Professional, 1998.

Template:Programming paradigms navbox Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found.