Year: 2007
Type: conference-paper
Abstract: . Logic programming systems often need to deal with large but otherwise regular predicates, e.g. wide ground facts. Such predicates can be treated as any other predicate by the compiler, but there are good reasons to treat them specially, the most important being that separating the code from the data really pays off. We call the technique exo-compilation: it reduces the memory needed for the code to about one third of the normal WAM compilation schema without undue slowdown. As a bonus, queries with lots of void variables get a significantly better treatment. We first introduce the idea of exo-compilation by an example and present its implementation in hProlog. We show how other optimisations can be built on top of it, and evaluate how it performs in practice. We then show that the same ideas can also be applied (albeit in a slightly different form) to Mercury, whose implementation is based on a very different principles. 1
Source: Lirias
Institutions: KU Leuven, Universidade do Porto, The University of Melbourne
Language: English
Subfield: Software
Field: Computer Science
Domain: Physical Sciences
Keywords: WAM, mercury, logic programming, memory reduction
Open Access status: green
OpenAlex ID: W855046723
