GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - clojure/core.logic: A logic programming library for Clojure & ClojureScript

BranchesTags
Open more actions menu

Latest commit

 

History

1,968 Commits
1,968 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
resources
resources
 
 
script
script
 
 
src
src
 
 
.gitignore
.gitignore
 
 
CHANGES.md
CHANGES.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
epl.html
epl.html
 
 
pom.xml
pom.xml
 
 
project.clj
project.clj
 
 

Repository files navigation

core.logic

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 αKanren. It is designed to be easily extended to forms of logic programming beyond the ones provided.

Releases and dependency information

This project follows the version scheme MAJOR.MINOR.PATCH where each component provides some relative indication of the size of the change, but does not follow semantic versioning. In general, all changes endeavor to be non-breaking (by moving to new names rather than by breaking existing names).

Latest stable release: 1.1.1

  • All released versions
  • Development snapshot version

CLI/deps.edn dependency information:

org.clojure/core.logic {:mvn/version "1.1.1"}

Leiningen dependency information:

[org.clojure/core.logic "1.1.1"]

Maven dependency information:

<dependency>
  <groupId>org.clojure</groupId>
  <artifactId>core.logic</artifactId>
  <version>1.1.1</version>
</dependency>

Example usage

(use 'clojure.core.logic)

(run* [q]
  (== q true))  
;;=> (true)

Running the tests

Assuming you have V8 installed from source:

lein cljsbuild once adv
d8 resources/tests.js

If you have another JS engine installed use that instead.

Reasoned Schemer

If you wish to work through The Reasoned Schemer with core.logic make sure to look over this first.

If you're interested in using core.logic from ClojureScript look here.

For more information & documentation please consult the wiki.

Differences from core.unify

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

YourKit has given an open source license for their profiler, greatly simplifying the profiling of core.logic performance.

YourKit supports open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of YourKit Java Profiler and YourKit .NET Profiler, innovative and intelligent tools for profiling Java and .NET applications.

Developer information

  • Bug Tracker
  • Continuous Integration

Copyright and license

Copyright © David Nolen, Rich Hickey & contributors.

Licensed under the EPL (see the file epl.html).

About

A logic programming library for Clojure & ClojureScript

Resources

Readme
EPL-1.0 license

Contributing

Contributing
Activity
Custom properties

Stars

1.5k stars

Watchers

101 watching

Forks

122 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.