Article View: comp.lang.prolog
Article #62Re: "smallest" Prolog
From: Torben AEgidius Mogensen
Date: Mon, 03 Aug 1992 12:34
Date: Mon, 03 Aug 1992 12:34
20 lines
1230 bytes
1230 bytes
kean@cs.ubc.ca (Alex Kean) writes: >In terms of byte size, how small can a Prolog interpreter be? This depends on two things: how much of Prolog you want, and in what language you write the interpreter. In Scheme I have written a Prolog intrepreter that fits on a page. It includes negation but not cut, though that would be easy to add. In Prolog you can use the simple three-line self-interpreter. If you go to lower level languages you will find that the parser and unparser takes about 90% of the space of the interpreter, even for moderately complex Prologs. Not counting i/o, I believe that I could write an interpreter for Prolog with cut and negation in a few (1-2) kilobytes using assembler on a not-too-braindead architecture. Torben Mogensen (torbenm@diku.dk)
Technical Details
Message-ID:
<1992Aug3.123441.20460@odin.diku.dk>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!bloom-beacon!eru.mt.luth.se!lunic!sunic!dkuug!diku!torbenmReferences:
<1992Jul16.195948.8920@cs.ubc.ca>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!bloom-beacon!eru.mt.luth.se!lunic!sunic!dkuug!diku!torbenm From: torbenm@diku.dk (Torben AEgidius Mogensen) Newsgroups: comp.lang.prolog Subject: Re: "smallest" Prolog Message-ID: <1992Aug3.123441.20460@odin.diku.dk> Date: 3 Aug 92 12:34:41 GMT References: <1992Jul16.195948.8920@cs.ubc.ca> Sender: torbenm@freke.diku.dk Organization: Department of Computer Science, U of Copenhagen Lines: 20