This article relies too much on references to primary sources. (April 2011) |
Paradigm | multi-paradigm: constraint, imperative, logic |
---|---|
Family | Wirth Modula |
Designed by | Krzysztof Apt, Marc Bezem, Jacob Brunekree, Vincent Partington, Andrea Schaerf |
Developer | Centrum Wiskunde & Informatica |
First appeared | 1997 |
Typing discipline | static |
Scope | Lexical (static) |
Website | www |
Major implementations | |
Alma-0 | |
Influenced by | |
Modula-2 |
Alma-0 is a multi-paradigm computer programming language. This language is an augmented version of the imperative Modula-2 language with logic-programming features and convenient backtracking ability.[1] It is small, strongly typed, and combines constraint programming, a limited number of features inspired by logic programming and supports imperative paradigms. The language advocates declarative programming. The designers claim that search-oriented solutions built with it are substantially simpler than their counterparts written in purely imperative or logic programming style.[2] Alma-0 provides natural, high-level constructs for building search trees.[3]
Since the designers of Alma-0 wanted to create a distinct and substantially simpler proposal than prior attempts to integrate declarative programming constructs (such as automatic backtracking) into imperative programming, the design of Alma-0 was guided by four principles:
Alma-0 can be viewed not only as a specific and concrete programming language proposal, but also as an example of a generic method for extending any imperative programming language with features that support declarative programming.
The feasibility of the Alma-0 approach has been demonstrated through a full implementation of the language (including a description of its semantics) for a subset of Modula-2.
The implemented features in Alma-0 include:
FOR
statement that introduces non-determinism in the form of choice points and backtrackingFORALL
statement that introduces a controlled form of iteration over the backtrackingThe Alma-0 designers claim that the assignment, which is usually shunned in pure declarative and logic programming, is actually needed in a number of natural situations, including for counting and recording purposes. They also affirm that the means of expression of such "natural" uses of assignment within the logic programming paradigm are unnatural.
By: Wikipedia.org
Edited: 2021-06-18 18:11:14
Source: Wikipedia.org