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
Effects of Contextual Cues on False Memory: A Comparative Experimental Approach
Effects of Contextual Cues on False Memory: A Comparative Experimental Approach
Research on false memory formation using the Deese-Roediger-McDermott (DRM) paradigm has been extensively conducted in Western contexts. Yet, a significant gap remains in experimen...
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...
Book Review: Symbolic Computing with Lisp and Prolog by Robert A Mueller and Rex L. Page (John Wiley and Sons)
Book Review: Symbolic Computing with Lisp and Prolog by Robert A Mueller and Rex L. Page (John Wiley and Sons)
This book covers the major portions of symbolic computing and denotational (declarative) programming. The main thrust of the authors is to contrast and compare the two major tools ...
Eyewitness Memory
Eyewitness Memory
Abstract
Eyewitness testimony during a criminal trial, even when made in good faith, is widely considered to be unreliable because (a) basic-science research has ...
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...

