Article View: comp.lang.prolog
Article #891Re: Proof that Prolog can be faster than C
From: David John Hawley
Date: Thu, 14 Jun 1990 03:09
Date: Thu, 14 Jun 1990 03:09
21 lines
1640 bytes
1640 bytes
In article <1990Jun13.100341.7148@cs.umu.se> christer@cs.umu.se (Christer Ericson) writes:
>This is silly! Haven't you learned yet that no language is faster/slower than
>another language - it's the implementation that's faster/slower than that
Well, of course the point is that Prolog is a much higher-level
language than C type languages, but we don't want to pay for all that
expressiveness all the time. I.e. the speed of our programs should
relate to the algorithms, not to the languages in which they are
expressed. So Prolog needs GREAT compilers and implementations, and
THEN we can write SHORT, SIMPLE, and FAST programs.
Well, I tried the given benchmark on my SUN/?:
C version - 8.7u
SICstus Prolog(compiled) - mem ovflw after > 1 min of real time
So how did he do it? Inquiring minds (and inquisitive noses) want to know.
---------------------------
David Hawley, ICOT, 4th Lab
csnet: hawley%icot.jp@relay.cs.net uucp:{enea,inria,mit-eddie,ukc}!icot!hawley
ICOT, 1-4-28 Mita, Minato-ku, Tokyo 108 JAPAN. TEL/FAX {81-3-456-}2514/1618
Technical Details
Message-ID:
<7046@icot32.icot.or.jp>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!sun-barr!ccut!ascgw!sh8810!okilab!icot32!hawleyReferences:
<36986@ucbvax.BERKELEY.EDU> <1990Jun13.100341.7148@cs.umu.se>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!sun-barr!ccut!ascgw!sh8810!okilab!icot32!hawley From: hawley@icot32.icot.or.jp (David John Hawley) Newsgroups: comp.lang.prolog,comp.lang.c Subject: Re: Proof that Prolog can be faster than C Summary: How did he do it? Keywords: SICstus Aquarius performance Message-ID: <7046@icot32.icot.or.jp> Date: 14 Jun 90 03:09:33 GMT References: <36986@ucbvax.BERKELEY.EDU> <1990Jun13.100341.7148@cs.umu.se> Followup-To: comp.lang.prolog Organization: Fifth Generation Computing Systems (ICOT), Tokyo, Japan Lines: 21