Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Perl and Prolog

by merlyn (Sage)
on Feb 04, 2002 at 14:25 UTC ( [id://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

Replies are listed 'Best First'.
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 - 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?

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (1)
As of 2024-04-25 00:14 GMT
Find Nodes?
    Voting Booth?

    No recent polls found