Multiparadigm_programming_language

Comparison of multi-paradigm programming languages

Comparison of multi-paradigm programming languages

Add article description


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 c.f. 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

More information Language, Paradigm count ...

See also

Notes

  1. rendezvous and monitor-like based
  2. class-based
  3. template metaprogramming
  4. only lambda support (lazy functional programming)
  5. multiple dispatch, method combinations
  6. actor programming
  7. promises, native extensions
  8. using Node.js' cluster module or child_process.fork method, web workers in the browser, etc.
  9. Prototype-based
  10. in Node.js via their events module
  11. in browsers via their native EventTarget API
  12. purely functional
  13. parameterized classes
  14. immutable
  15. multiple dispatch, not traditional single

Citations

  1. Bragg, S.D.; Driskill, C.G. (20–22 September 1994). "Diagrammatic-graphical programming languages and DoD-STD-2167A". Proceedings of AUTOTESTCON '94 (IEEEXplore). 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. "AraRat" (PDF). Archived from the original (PDF) on 2019-08-19. Retrieved 2019-09-15.
  3. "Light Table". 2019-04-08.
  4. many concurrency paradigms implemented as language extensions
  5. constraint programming inside CL through extensions
  6. dataflow extension
  7. by creating DSLs using the built-in metaprogramming; also see note on functional, constraint and logic paradigms, which are part of declarative
  8. MPI, etc via language extensions
  9. template metaprogramming using macros (see C++)
  10. Prolog implemented as a language extension
  11. Common Lisp Object System see Wikipedia article on CLOS, the Common Lisp Object System.
  12. rule-based programming extension
  13. Archived 2018-04-26 at the Wayback Machine through the Meta Object Protocol
  14. The Little JavaScripter demonstrates fundamental commonality with Scheme, a functional language.
  15. Object-Oriented Programming in JavaScript Archived 2019-02-10 at the Wayback Machine gives an overview of object-oriented programming techniques in JavaScript.
  16. "TNG-Hooks". GitHub. 2019-04-08.
  17. "mori". 2019-04-08.
  18. "Light Table". 2019-04-08.
  19. "TNG-Hooks". GitHub. 2019-04-08.
  20. Kollmansberger, Steve; Erwig, Martin (30 May 2006). "Haskell Rules: Embedding Rule Systems in Haskell" (PDF). Oregon State University.
  21. https://jcp.org/en/jsr/detail?id=331 JSR 331: Constraint Programming API
  22. "JuliaOpt/JuMP.jl". GitHub. JuliaOpt. 11 February 2020. Retrieved 12 February 2020.
  23. https://github.com/davidanthoff/Query.jl Query almost anything in julia
  24. https://github.com/lilinjn/LilKanren.jl A collection of Kanren implementations in Julia
  25. "Execute loop iterations in parallel". mathworks.com. Retrieved 21 October 2016.
  26. "Write Constraints". mathworks.com. Retrieved 21 October 2016.
  27. "Getting Started with SimEvents". mathworks.com. Retrieved 21 October 2016.
  28. "Execute loop iterations in parallel". mathworks.com. Retrieved 21 October 2016.
  29. "Execute MATLAB expression in text - MATLAB eval". mathworks.com. Retrieved 21 October 2016.
  30. "Determine class of object". mathworks.com. Retrieved 21 October 2016.
  31. "Class Metadata". mathworks.com. Retrieved 21 October 2016.
  32. "Object-Oriented Programming". mathworks.com. Retrieved 21 October 2016.
  33. "Simulink". mathworks.com. Retrieved 21 October 2016.
  34. "Parallel Processing and Multiprocessing in Python". Python Wiki. Retrieved 21 October 2016.
  35. "threading — Higher-level threading interface". docs.python.org. Retrieved 21 October 2016.
  36. "python-constraint". pypi.python.org. Retrieved 21 October 2016.
  37. "DistributedProgramming". Python Wiki. Retrieved 21 October 2016.
  38. "Chapter 9. Metaprogramming". chimera.labs.oreilly.com. Archived from the original on 23 October 2016. Retrieved 22 October 2016.
  39. "Metaprogramming". readthedocs.io. Retrieved 22 October 2016.
  40. "PEP 443 – Single-dispatch generic functions". python.org. Retrieved 22 October 2016.
  41. "PEP 484 – Type Hints". python.org. Retrieved 22 October 2016.
  42. "PyDatalog". Retrieved 22 October 2016.
  43. "Light Table". 2019-04-08.
  44. "Magrittr: A Forward Pipe Operator for R". cran.r-project.org\access-date=13 July 2017. 17 November 2020.
  45. "The Rust macros guide". Rust. Retrieved 19 January 2015.
  46. "The Rust compiler plugins guide". Rust. Retrieved 19 January 2015.
  47. "Tcl Programming/Introduction". en.wikibooks.org. Retrieved 22 October 2016.
  48. "TCLLIB - Tcl Standard Library: snitfaq". sourceforge.net. Retrieved 22 October 2016.
  49. Notes for Programming Language Experts, Wolfram Language Documentation.
  50. External Programs, Wolfram Language Documentation.

References

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

Share this article:

This article uses material from the Wikipedia article Multiparadigm_programming_language, and is written by contributors. Text is available under a CC BY-SA 4.0 International License; additional terms may apply. Images, videos and audio are available under their respective licenses.