Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Friday March 18, 2005
01:12 PM

Writing a Prolog Tutorial

[ #23722 ]

I've realized that I need to write a Prolog tutorial. Prolog is very easy to use and there are tons of great tutorials out there (see Adventure in Prolog for a particularly nice one from one of the authors of Amzi Prolog.) However, I see that I need to bundle a basic intro in AI::Prolog. In fact, I need to bundle all of these things:

  • Tutorial
  • Glossary
  • Cookbook

There's really no way that most programmers will jump on the bandwagon unless I make things really, really easy for them.

Side note: if you decide to work through the Adventure in Prolog tutorial linked to above and you are using SWI-Prolog, be aware that predicates that are retracted and asserted must be declared "dynamic" in SWI-Prolog. That just means shoving something like this at the top of your code:

:- dynamic here/1, location/2, have/1, turned_off/1, turned_on/1,

Kudos to the Amzi Prolog folks for making their book free! And after you actually learn Prolog, you can then read their other free book on Building Expert Systems in Prolog.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.