Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Perl and Prolog

by merlyn (Sage)
on Feb 04, 2002 at 14:25 UTC ( #143242=note: print w/ replies, xml ) Need Help??


in reply to Perl and Prolog

You should check out the Language::Prolog module! It's no longer maintained, and if I recall, has no Makefile.PL (it's ancient!) but with a little work, you can be unifying and verifying under Perl!

-- Randal L. Schwartz, Perl hacker


Comment on Re: Perl and Prolog
Re: Re: Perl and Prolog
by Hanamaki (Chaplain) on Feb 04, 2002 at 19:54 UTC
    True for the original Prolog-alpha by Jack Shirazi, but Lee Goddard's Language-Prolog-Interpreter has a Makefile.PL and is (maybe) maintained. merlyns link points two both distributions.

    Hanamaki
      Hanamaki - actually, Lee only did a little work on it a few years ago, and is waiting for someone to feel the same way. In other words, if anyone fancies working on it, please ask and I'll transfer ownership. I think the original author is credited in the POD. Nemeste Lee Goddard
Re: Re: Perl and Prolog
by princepawn (Parson) on Feb 05, 2002 at 11:08 UTC
    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

      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://143242]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2014-08-21 04:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (127 votes), past polls