Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Rules-based Perl?

by larsen (Parson)
on Apr 11, 2001 at 00:38 UTC ( #71484=note: print w/ replies, xml ) Need Help??


in reply to Rules-based Perl?

knobunc's reply is good. Check Language::Prolog As far as I know, it is currently a beta version.
But, if you want to "reinvent the wheel", you should consider reading something on the following topics:

  • Propositional logic
  • Predicate logic
  • Herbrand's Theory
  • Godel-Herbrand-Skolen Theorem
  • Resolution and Robinson's Algorithm
  • Horn Clause Programs
  • Prolog
You can check them in that order :)
Logic programming slogan "I tell you what I know and what I'd like to know, without telling you how" showed its practical unapplicability over the years: every logic programming language includes extralogic operators, such as cut, that introduce elements of imperative programming in the language ("I tell you what I know and what I'd like to know, without telling you how... Well, I will help you a bit").
Despite of their impure nature, logic programming languages are very interesting and I think they're worth studying.


Comment on Re: Rules-based Perl?
Re: Re: Rules-based Perl?
by clemburg (Curate) on Apr 11, 2001 at 20:01 UTC

    If you want to reinvent the wheel here, start by reading through Paradigms of Artificial Intelligence Programming: Case Studies in Common Lisp by Peter Norvig. It has working code examples on what you want. Especially relevant are chapters 6 (Tools), 11 and 12 (Logic Programming and Prolog Compiler), and 16 (Expert Systems). It should not be too hard to pull out the code you need from this book.

    Christian Lemburg
    Brainbench MVP for Perl
    http://www.brainbench.com

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2014-09-22 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (202 votes), past polls