Download PDF

Association for Logic Programming Newsletter

Publication date: 2006-08-01
Volume: 19

Author:

Schrijvers, Tom

Keywords:

CHR

Abstract:

It has been about 15 years now since the Constraint Handling Rules (CHR) language saw the light. Since then it has become quite clear that CHR is a very powerful complement to Prolog. Both have a very firm basis in logic, but whereas Prolog is about single-headed rules, backward chaining and backtracking, CHR has multi-headed rules, forward chaining and committed choice. CHR's features haven been chosen to support the modeling and implementation of constraint solvers. Today we know of no better way to quickly implement solvers for and gain insight in new constraint domains. In recent years, it has become clear that CHR is also useful for many other types of applications. The usual applications of (Term) Rewriting Systems and Production Rule Systems are quite easy to implement in CHR as well. Also imperative algorithms can be expressed in a high-level manner in CHR. In short, be it for logical reasoning services or for any other general purpose application, CHR is a language to consider. CHR is usually embedded in Prolog as an add-on library and for a long time the SICStus implementation by Christian Holzbaur has been the standard implementation. This library was also available in Yap; two different, older implementations come with ECLiPSe. Unfortunately, as far as we know, neither of these systems is currently still being actively developed or even maintained. In this article we present our new implementation: the K.U.Leuven CHR system. It provides a user-friendly and highly efficient CHR implementation to all Prolog users.