Paper record

W2112962394

Prolog - the language and its implementation compared with Lisp

D.H.D. Warren, Luís M.C. Pereira, Fernando M. B. Pereira

Year
1977
Venue
Symposium on Artificial Intelligence and Programming Languages
References
3
Cited by
181

Details and counts from OpenAlex.

Abstract

Prolog is a simple but powerful programming language founded on symbolic logic. The basic computational mechanism is a pattern matching process (“unification”) operating on general record structures (“terms” of logic). We briefly review the language and compare it especially with pure Lisp. The remainder of the paper discusses techniques for implementing Prolog efficiently; in particular we describe how to compile the patterns involved in the matching process. These techniques are as incorporated in our DECsystem-10 Prolog compiler (written in Prolog). The code it generates is comparable in speed with that produced by existing DEC10 Lisp compilers. We argue that pattern matching is a better method for expressing operations on structured data than conventional selectors and constructors - both for the user and for the implementor.