Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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


Comment on Re: Re: Perl and Prolog
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2014-09-24 02:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (244 votes), past polls