Re:Lisp in Prolog in zero lines
by almost on Wednesday August 19, 2009 @07:34AM
(#772481)
Neither of the Prolog-in-Lisp examples I've seen (in "On Lisp" and "Paradigms of Artificial Intelligence Programming", both of which I highly recommend) seem to be much about language one-upmanship. Rather, they seem like interesting ways to really understand the important bits of Prolog, how they work and what they might be useful for.
[ Parent
| on HN ]
Prolog is to Lisp what assembly is to C: used occasionally for specific purposes, where absolutely necessary.
Prolog is a fun language, on it's own, but one feels like his arms have been cut off and his legs made 100 times more powerful when using prolog; it empowers you in some aspects, but completely disables you in others. So, many people opt to get it in a form where it's embedded in Lisp, to augment its shortcomings and exploit its powers.
Re:Lisp in Prolog in zero lines
by silentbicycle on Wednesday August 19, 2009 @08:24AM
(#772549)
That's because the design of the language is so strongly skewed towards unification and search. It's great as a database / ruleset query language, for example, but it's not as general-purpose as e.g. Lisp or ML. It makes a lot of sense to embed it in something else. (I wouldn't try to write a web server in Make, either, but Make is quite useful in its specific domain.)