Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Re: Perl and Prolog

by princepawn (Parson)
on Feb 05, 2002 at 11:08 UTC ( #143405=note: print w/replies, xml ) Need Help??

in reply to Re: Perl and Prolog
in thread Perl and Prolog

you can be unifying and verifying under Perl!
I have often wanted to write an article called AI::Prolog::DontBother It is much easier to map human reasoning to Perl than to Prolog. Actually CLIPS is a pretty good rule/expert system, and Mercury is a great step forward past Prolog, integrating functional and logic programming.

And a good book on the subject is David H.D. Warren's "Computing with Logic: Logic Programming in Prolog" which moves through propositional, predicate and functional logic (the last of which is what prolog uses).

An implementation of the first (propositional) logic is available in AI::Proplog.

But like I said, I dont think Prolog is really any more powerful than Perl and even though object and functional and procedural mechanisms are available in Perl, logical ones are not here and not apparently needed. ref Prolog-Perl Golf Association

Replies are listed 'Best First'.
Re^3: Perl and Prolog
by Anonymous Monk on Jan 27, 2010 at 01:34 UTC
    Um... No. For people who can only think procedurally, Prolog is very, very hard. For many things, it's very unnatural. But when you have a lot of complicated, interrelated data, Prolog is amazing. You will never ever want to go back to using databases again.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://143405]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2016-10-22 20:59 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (298 votes). Check out past polls.