Rule Engine in Python

Harry George hgg9140 at seanet.com
Fri Apr 5 20:12:13 EST 2002


"Robert Oschler" <Oschler at earthlink.net> writes:

> Harry George <hgg9140 at seanet.com> wrote in message
> news:m3u1qq3ma8.fsf at wilma.localdomain...
> > A few lines of python doing
> > regualr expressions and some text manipulation takes the palce of a
> > page or so of prolog.  That was all with ALS -- I've used SWI for a
> > few simple examples, but never compared them for heavy processing.
> >
> 
> I don't want to misinterpret anything, but are you indicating that if you
> had your druthers you'd replace the prolog code wth python code?
> 
> thx
> 

Yes, at least for our context.  Out of perhaps 100 prolog modules,
only 1 or 2 really have declarative rules which take advantage of
backtracking.  The others are procedural (usually enforced with cuts).
For that python is a better choice.  Either way, the heavy lifting for
3D graphics is in the underlying C/C++/OpenGL libraries.  Prolog/Pyton
are there to add intelligence.

> 
> 

-- 
Harry George
hgg9140 at seanet.com



More information about the Python-list mailing list