[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lisp is faster than Prolog?
- To: Rick McGeer <mcgeer%ucbkim@Berkeley>
- Subject: Re: Lisp is faster than Prolog?
- From: Sanjai Narain <narain@rand-unix>
- Date: Wed, 27 Mar 85 01:33:41 GMT
- Cc: prolog%ernie@Berkeley, franz-friends%ucbkim@Berkeley, narain@rand-unix
- In-reply-to: Your message of Tue, 26 Mar 85 16:06:57 pst. <8503270006.AA03620@ucbkim.ARPA>
- Original-date: 26 Mar 85 17:33:41 PST (Tue)
Your first comparison of Prolog and Lisp is not very meaningful. You are
comparing a Prolog implemented in Lisp with a Lisp implemented in C.
Perhaps you could try to compare Lisp in Lisp with Prolog in Lisp.
In a certain sense, your comparison of Franzlisp and C-Prolog infact
indicates the superiority of C-Prolog. C-Prolog can be used to do append
and all other functional programming at almost the speed of FranzLisp.
However, in C-Prolog, you can do also do deduction, searching, pattern
matching and a lot of other AI-stuff at the same speed. To do these in
Franzlisp you must write Lisp functions and suffer the loss in speed
associated with simulating functionality in a high-level language.
-- Sanjai