Newsgroups: comp.lang.prolog
Path: cantaloupe.srv.cs.cmu.edu!europa.chnt.gtegsc.com!howland.reston.ans.net!Germany.EU.net!EU.net!Austria.EU.net!newsfeed.ACO.net!paladin.american.edu!news.ecn.uoknor.edu!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
Subject: Re: speed of prolog
Message-ID: <9516822.6504@mulga.cs.mu.OZ.AU>
Sender: news@cs.mu.OZ.AU (CS-Usenet)
Organization: Computer Science, University of Melbourne, Australia
References: <3pam2e$9jh@chuangtsu.acns.carleton.edu> <3pptgj$6do@percy.cs.bham.ac.uk> <D90wt4.32n@cee.hw.ac.uk> <9514714.11493@mulga.cs.mu.OZ.AU> <9514909.20364@mulga.cs.mu.OZ.AU> <3qccu8$m6h@hitchcock.dfki.uni-sb.de> <3qcq5m$jiu@columba.udac.uu.se>
Date: Sat, 17 Jun 1995 12:52:27 GMT
Lines: 27

voronkov@csd.uu.se (Andrei Voronkov) writes:

>Well, this is the required Prolog program:
>
>
>(empty program). Writing this program in Prolog takes 0 seconds
>and 0 lines of code. To write a C/C++ program with equal or better 
>performance, you will have to write at least a Prolog interpeter. I am 
>very confident that it will take a few years for you to write an 
>equivalent program comparable in efficiency with this empty Prolog
>program run e.g. under Sicstus Prolog I am using. Is it convincing?

No, I think the following C program

	#include <stdlib.h>
	main() { return system("prolog"); }

does basically the same thing as your Prolog program and
is comparable in efficiency.  (Not quite as efficient, but
very nearly so.)

;-)

-- 
Fergus Henderson
fjh@cs.mu.oz.au
http://www.cs.mu.oz.au/~fjh
