Live data from Hacker News

CLIPS: A Tool for Building Expert Systems

clipsrules.net

1–10 of 64 posts

Re: CLIPS: A Tool for Building Expert Systems

#4
I only spent a few minutes with it, but highly recommend the user's guide. I thought it was clearly and well-written, and also pretty funny.

> A fact such as (duck) or (quack) is said to consist of a single field [...] As a simple analogy, you can think of a field as a picture frame. The frame can hold a picture, perhaps a picture of your pet duck (For those of you who are curious what a picture of a “quack” looks like, it could be (1) a photo of an oscilloscope trace of a duck saying “quack”, where the signal input comes from a microphone, or (2) for those of you who are more scientifically inclined, a Fast Fourier Transform of the “quack” signal, or (3) a TV-huckster selling a miracle cure for wrinkles, losing weight, etc.).

Re: CLIPS: A Tool for Building Expert Systems

#5
Ah CLIPS!

There are a few moments in my life as a young programmer that I remember as mind-expanding. CLIPS was one of those moments (along with arrays, files and recursion).

It's forward-chaining (not backward, as Prolog is) so you can see the database of facts build up step by step. A nice bridging point between procedural and declarative programming.

And a foot in the door for parens-based syntax (it looks a bit like LISP) without the s-expression model.

Re: CLIPS: A Tool for Building Expert Systems

#7
Clips was inspired by Charles Forgy’s OPS5 that was implemented in Common Lisp and introduced the Rete algorithm that is also used in Clips.

I didn’t do much with Clips but OPS5 was a large part of my working life for years (supported commercial versions on Macintosh and Xerox Lisp Machines, extended the Rete algorithm to support multiple worlds for an internal project).

Re: CLIPS: A Tool for Building Expert Systems

#8
Back in 2003 I worked for a startup that used CLIPS. While it's quite powerful and expressive, as the number of rules grows it becomes very difficult to reason about and debug them. The application logic becomes spaghetti-like and very brittle. So it's an interesting paradigm to learn about, but not very useful for real-world applications IMO.

Re: CLIPS: A Tool for Building Expert Systems

#9

Clips was inspired by Charles Forgy’s OPS5 that was implemented in Common Lisp and introduced the Rete algorithm that is also used in Clips. I didn’t do much with Clips but OPS5 was a large part of my working life for years (supported commercial versions on Macintosh and Xerox Lisp Machines, extended the Rete algorithm to support multiple worlds for an internal project).

I maintain an OPS5 repo here: http://OPS5.org

Re: CLIPS: A Tool for Building Expert Systems

#10
post #3
post #2

Probably better to use modern Prolog instead?

What is a modern prolog? I'd like to try out something like it.

Check Power of Prolog[1] book, and Awesome Prolog[2] list for more information.

[1] https://www.metalevel.at/prolog

[2] https://github.com/klaussinani/awesome-prolog

Post reply on HN