Fifth-generation language historical5gl
The hoped-for tier above declarative programming, where the system derives its own algorithm from constraints and a knowledge base. Associated with logic programming and the 1980s Japanese fifth-generation project; the ambition outran the results.
Overview
The fifth generation is the tier that was promised rather than achieved: a declarative problem statement plus constraints, from which an inference engine derives a solution with no algorithm specified by the programmer. It is associated with logic programming — Prolog and its descendants — and with Japan's Fifth Generation Computer Systems project, launched in 1981. Clarke's survey treats it as the emergent tier above the fourth.
Defining characteristics
- Constraint-based rather than procedure-based. The programmer supplies conditions the answer must satisfy, in the hope that search and inference do the rest — the logic and declarative styles taken to their limit.
- An inference engine as the runtime. Execution is deduction over a rule base rather than evaluation of instructions, which is what the tier promises over the fourth generation's program generation.
- Knowledge representation. The tier is tied to expert systems and knowledge bases, where a domain model is the program, in place of either procedures or queries.
- Abstraction above delegation. Clarke's model frames the fourth generation as delegating how while the fifth delegates the formulation of the solution itself, describing the human relationship as teaching rather than instructing.
Status
Historical as a named generation, active as a set of techniques. The label was applied to a hardware-and-software programme whose ambitions were not met, and skepticism about it predates the results: in 2007 Philip Howard argued that no further level of abstraction above a 4GL is possible, so "5GL" names a 4GL with extras. Constraint solving, logic programming, and rule engines nonetheless survive and are used in earnest — Oz among the languages in this corpus.
No language entry is tagged as this generation yet. That may be the honest answer — the corpus has no machine-code or assembly rows — or it may mean the tag has not been curated yet.