A logic programming library for Clojure & ClojureScript. core.logic offers Prolog-like relational programming, constraint logic programming, and nominal logic programming for Clojure. At its heart is an original implementation of miniKanren as described in William Byrd's dissertation Relational Programming in miniKanren: Techniques, Applications, and Implementations as well as the extensions described in cKanren and alphaKanren. It is designed to be easily extended to forms of logic programming beyond the ones provided.
For more information & documentation please consult the wiki.
core.unify provides a la carte unification facilities that are not deeply tied into the operation of a logic engine. While core.logic does provide a similar simple unifier interface with support for specifying fine-grained constraints, if you have no need for a logic programming system, core.unify may be a better fit.
YourKit has given an open source license for their profiler, greatly simplifying the profiling of core.logic performance.
YourKit is kindly supporting open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of innovative and intelligent tools for profiling Java and .NET applications. Take a look at YourKit's leading software products:
Latest stable release: 0.8.2
Leiningen dependency information:
Maven dependency information:
<dependency> <groupId>org.clojure</groupId> <artifactId>core.logic</artifactId> <version>0.8.2</version> </dependency>
(use 'clojure.core.logic) (run* [q] (== q true)) ;;=> (true)
Copyright © 2010-2012 David Nolen, Rich Hickey & contributors.
Licensed under the EPL (see the file epl.html).