Re: Disequality

2012-01-10 Thread David Nolen
On Sat, Jan 7, 2012 at 11:20 PM, jim wrote: > Hey David, > > From the readme the failing disequality example: > > (run* [q] > (fresh [x y] >(!= [x 2] [1 y]) >(== x 1) >(== y 2) >(== q [x y]))) > > gives me ([1 2]) > I just checked t

Re: Disequality

2012-01-08 Thread David Nolen
Thanks for report. Please open a ticket. I'll look into this later this week. David On Saturday, January 7, 2012, jim wrote: > Hey David, > > From the readme the failing disequality example: > > (run* [q] > (fresh [x y] >(!= [x 2] [1 y]) >(== x 1)

Re: Disequality

2012-01-07 Thread Michael Wood
Hi On 8 January 2012 06:20, jim wrote: > Hey David, > > From the readme the failing disequality example: > > (run* [q] >  (fresh [x y] >    (!= [x 2] [1 y]) >    (== x 1) >    (== y 2) >    (== q [x y]))) > > gives me ([1 2]) > > Shouldn't it be: &g

core.logic - Disequality

2012-01-07 Thread jim
Hey David, >From the readme, the failing disequality example: (run* [q] (fresh [x y] (!= [x 2] [1 y]) (== x 1) (== y 2) (== q [x y]))) gives me ([1 2]) Shouldn't it be: (run* [q] (fresh [x y] (!= [x 2] [1 y]) (== x 1) (== y 2) (== q [x y])))

Disequality

2012-01-07 Thread jim
Hey David, >From the readme the failing disequality example: (run* [q] (fresh [x y] (!= [x 2] [1 y]) (== x 1) (== y 2) (== q [x y]))) gives me ([1 2]) Shouldn't it be: (run* [q] (fresh [x y] (!= [x 2] [1 y]) (== x 1) (== y 2) (== q [x y])))

Re: ANN: Logos v0.6 - Pattern matching, Tabling, Disequality Constraints, and now on Clojars

2011-04-15 Thread David Nolen
On Mon, Apr 11, 2011 at 2:01 PM, Vagif Verdi wrote: > Can it be used as an inference (rule) engine ? You can now - (defrel man p) (fact man 'Bob) (fact man 'John) (fact man 'Ricky) (defrel woman p) (fact woman 'Mary) (fact woman 'Martha) (fact woman 'Lucy) (defrel likes p1 p2) (fact likes '

Re: ANN: Logos v0.6 - Pattern matching, Tabling, Disequality Constraints, and now on Clojars

2011-04-11 Thread David Nolen
On Mon, Apr 11, 2011 at 2:01 PM, Vagif Verdi wrote: > Can it be used as an inference (rule) engine ? If you mean in the same way that you can build inference (rule) engines in Prolog - I don't see why not. However there is a bit of work to be done in order to make building efficient rule engin

Re: ANN: Logos v0.6 - Pattern matching, Tabling, Disequality Constraints, and now on Clojars

2011-04-11 Thread Vagif Verdi
?x ?x1))) >       (noattack-o [?x ?y] ?others > > The big changes are: > > * Pattern matching > * Goals can be tabled a la XSB > * Fairly efficient implementation of disequality constraints (and programs > w/o constraints are not penalized) > > I've been begun port

Re: ANN: Logos v0.6 - Pattern matching, Tabling, Disequality Constraints, and now on Clojars

2011-04-10 Thread David Nolen
On Sun, Apr 10, 2011 at 6:11 AM, faenvie wrote: > very interesting stuff. i will follow this with pleasure ... > > to get into it, a basic tutorial that focuses on solving > one or two classical problems using logos would > probably be a winner. Thanks. A tutorial is definitely planned. David

Re: ANN: Logos v0.6 - Pattern matching, Tabling, Disequality Constraints, and now on Clojars

2011-04-10 Thread faenvie
very interesting stuff. i will follow this with pleasure ... to get into it, a basic tutorial that focuses on solving one or two classical problems using logos would probably be a winner. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post

Re: ANN: Logos v0.6 - Pattern matching, Tabling, Disequality Constraints, and now on Clojars

2011-04-09 Thread MarkSwanson
Fascinating! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send e

ANN: Logos v0.6 - Pattern matching, Tabling, Disequality Constraints, and now on Clojars

2011-04-09 Thread David Nolen
?y1 ?x ?x1] (!= (- ?y1 ?y) (- ?x1 ?x)) (!= (- ?y1 ?y) (- ?x ?x1))) (noattack-o [?x ?y] ?others The big changes are: * Pattern matching * Goals can be tabled a la XSB * Fairly efficient implementation of disequality constraints (and programs w/o c