The Boyer benchmark meets linear logic
Author:
- Henry G. BakerHBHenry G. Baker
Open Access
- 1 October 1993
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Lisp Pointers
- Vol. VI (4) , 3-10
Abstract
Of the Gabriel Lisp Benchmarks, the Boyer Benchmark ("Boyer") is the most representative of real AI applications, because it performs Prolog-like rule-directed rewriting, and because it relies heavily on garbage collection (GC) for the recovery of storage. We investigated the notion that such programs are unsuitable for explicit storage management---e.g., by means of a "linear" programming style in which every bound name dynamically occurs exactly once. We programmed Boyer in a "linear" fragment of Lisp in both interpretive-rule and compiled-rule versions, using both true linear (unshared) and reference count methods.We found that since the intermediate result of rewrite is unshared, the linear interpreted version is slower than the non-linear interpreted version, while the linear compiled version is slightly faster than the non-linear compiled version. When sharing is allowed, requiring reference counts for the linear versions, the linear shared versions are not competitive with the non-linear versions, except when "anchored pointers" are used. The anchored pointer reference count version, which reclaims storage, is still 1.25X slower than the non-linear version, which reclaims no storage.Keywords
This publication has 27 references indexed in Scilit:
- Linear logic and permutation stacks—the Forth shall be firstACM SIGARCH Computer Architecture News, 1994
- A “linear logic” QuicksortACM SIGPLAN Notices, 1994
- Sparse polynomials and linear logicACM SIGSAM Bulletin, 1993
- Lively linear LispACM SIGPLAN Notices, 1992
- The buried binding and dead binding problems of Lisp 1.5ACM SIGPLAN Lisp Pointers, 1992
- Copying and swapping: influences on the design of reusable software componentsIEEE Transactions on Software Engineering, 1991
- Axioms and models of linear logicFormal Aspects of Computing, 1990
- The linear abstract machineTheoretical Computer Science, 1988
- Containment defines a class of recursive data structuresACM SIGPLAN Notices, 1983
- An empirical study of list structure in LispCommunications of the ACM, 1977