Javascript must be enabled to continue!
Memory management for Prolog with tabling
View through CrossRef
Tabling can be implemented in a (WAM-based) Prolog system by means of SLG-WAM: consumers suspend and their state is preserved by freezing the execution stacks. XSB is a system that currently implements tabling based on the SLG-WAM. The memory model is quite complex and attempts to understand the notion of usefulness of data in XSB well enough to build a precise garbage collector have failed in the past. CAT is a recent alternative to SLG-WAM: it suspends consumers by copying parts of the execution stacks. The memory model is simpler and the design of a more precise garbage collector became feasible. CAT also provided the necessary insights in the usefulness of data in the context of the SLG-WAM. This paper describes the memory management of tabled logic programming systems, whether based on the SLG-WAM or on CAT. Since CAT can perform arbitrarily worse than SLG-WAM space-wise, a minor garbage collection on creation of the CAT areas is proposed as a remedy; its effectiveness is discussed.
Title: Memory management for Prolog with tabling
Description:
Tabling can be implemented in a (WAM-based) Prolog system by means of SLG-WAM: consumers suspend and their state is preserved by freezing the execution stacks.
XSB is a system that currently implements tabling based on the SLG-WAM.
The memory model is quite complex and attempts to understand the notion of usefulness of data in XSB well enough to build a precise garbage collector have failed in the past.
CAT is a recent alternative to SLG-WAM: it suspends consumers by copying parts of the execution stacks.
The memory model is simpler and the design of a more precise garbage collector became feasible.
CAT also provided the necessary insights in the usefulness of data in the context of the SLG-WAM.
This paper describes the memory management of tabled logic programming systems, whether based on the SLG-WAM or on CAT.
Since CAT can perform arbitrarily worse than SLG-WAM space-wise, a minor garbage collection on creation of the CAT areas is proposed as a remedy; its effectiveness is discussed.
Related Results
Automated Theorem Proving for Prolog Verification
Automated Theorem Proving for Prolog Verification
LPTP (Logic Program Theorem Prover) is an interactive natural-deduction-based the- orem prover for pure Prolog programs with negation as failure, unification with the occurs check,...
An integrated Prolog programming environment
An integrated Prolog programming environment
For a long time it has been argued that the right kind of representation can provide insight and understanding for a problem. Believing in the general hypothesis that the limitatio...
Implementation of a Prolog-INGRES interface
Implementation of a Prolog-INGRES interface
This report describes a working prototype of a Prolog-INGRES interface based on external semantic query simplification. Semantic query simplification employs integrity constraints ...
Material specific memory changes following anterior temporal lobectomy as predicted by the intracarotid amobarbital test
Material specific memory changes following anterior temporal lobectomy as predicted by the intracarotid amobarbital test
Temporal Lobe Epilepsy often remains refractory to drug therapy, at which time anterior temporal lobectomy (ATL) may be considered. Left anterior temporal lobectomy (LATL) has been...
Neuronal circuitry and molecular mechanisms regulating memory engrams in health and Alzheimer’s disease
Neuronal circuitry and molecular mechanisms regulating memory engrams in health and Alzheimer’s disease
Memories are the basis of our existence and shape who we are. Understanding how and where memories are stored has been a central focus of neuroscience research for more than a cent...
Shared Histories in Multiethnic Societies: Literature as a Critical Corrective of Cultural Memory Studies
Shared Histories in Multiethnic Societies: Literature as a Critical Corrective of Cultural Memory Studies
AbstractThe staging of history in literature is engaged in dynamic exchange with society’s memory discourses and in this context, literature is generally seen as playing a creative...
Theta-Gamma Phase-Amplitude Coupling Supports Working Memory Performance in the Human Hippocampus
Theta-Gamma Phase-Amplitude Coupling Supports Working Memory Performance in the Human Hippocampus
Abstract
Phase-amplitude coupling (PAC) occurs in the human hippocampus during working memory and supports the contribution of the hippocampus in the maintenance of...

