Jump to content

Language-oriented programming

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Spdegabrielle (talk | contribs) at 14:10, 15 May 2019 (Development: corrected link). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Language-oriented programming(LOP)[1] is a software-development paradigm where "language" is a software building block with the stame status as objects, modules and components[2], and rather than solving problems in general-purpose programming languages, the programmer creates one or more domain-specific languages for the problem first, and solves the problem in those languages. Language-oriented programming was first described in detail in Martin Wards 1994 paper Language Oriented Programming[1], published in Software - Concepts and Tools, Vol.15, No.4, pp 147-161, 1994.

Concept

The concept of language-oriented programming takes the approach to capture requirements in the user's terms, and then to try to create an implementation language as isomorphic as possible to the user's descriptions, so that the mapping between requirements and implementation is as direct as possible. A measure of the closeness of this isomorphism is the "redundancy" of the language, defined as the number of editing operations needed to implement a stand-alone change in requirements. It is not assumed a-priori what is the best language for implementing the new language. Rather, the developer can choose among options created by analysis of the information flows — what information is acquired, what its structure is, when it is acquired, from whom, and what is done with it.[3]

Development

A Language workbench[4] such as JetBrains MPS, Kermeta, Racket or Xtext provide the required tools to develop new DSLs.

See also

References

  1. ^ a b Ward, Martin (1994). "Language Oriented Programming" (PDF). Software - Concepts and Tools. 15 (4): 147–161. doi:10.1007/978-1-4302-2390-0_12. Retrieved 15 May 2019.
  2. ^ Felleisen, Matthias; Findler, Robert Bruce; Flatt, Matthew; Krishnamurthi, Shriram; Barzilay, Eli; McCarthy, Jay; Tobin-Hochstadt, Sam (March 2018). "A Programmable Programming Language". Communications of the ACM. 61 (3): 62–71. doi:10.1145/3127323. Retrieved 15 May 2019.
  3. ^ Dunlavey (1994). Building Better Applications: a Theory of Efficient Software Development. International Thomson Publishing. ISBN 0-442-01740-5. {{cite book}}: Cite has empty unknown parameter: |chapterurl= (help)
  4. ^ Fowler, Martin (12 June 2005). "Language Workbenches: The Killer-App for Domain Specific Languages?". Retrieved 14 April 2015.