News for hackers. Stuff that matters.
Re:The Power of Prolog by bhk on Wednesday April 08, 2020 @08:08PM (#22818535)
It would help if you could point users to a Prolog implementation that is compatible with your examples. I couldn't find any in the book, but going up to your home page I found a couple of references to SWI-Prolog, and installed that, but the first two examples in the book resulted in syntax errors regarding the "#>" and "#=" operators.
Re:The Power of Prolog by Avshalom on Wednesday April 08, 2020 @08:35PM (#22818691)
I can't remember exactly where it is mentioned (it is somewhere) but in SWI-Prolog you need to put

  :- use_module(library(clpfd)).
at the top of your file (or just use_module(library(clpfd)). at the console)
Re:The Power of Prolog by falsissime on Thursday April 09, 2020 @05:40PM (#22827494)
Or

    :- use_module(library(clpz)).
for its successor which runs with SICStus and Scryer.