sicstus-prolog Questions
2
Solved
I want to understand SICStus-style extensible unification.
The User's Manual on library(atts) states that:
Module:verify_attributes(-Var, +Value, -Goals) hook
...
verify_attributes/3 may invoke a...
Hickox asked 11/11, 2020 at 12:32
2
Solved
Question: Fill in the grid with squares (of any size) that do not touch or overlap, even at the corners. The numbers below and at the
right indicate the number of grid squares that are filled in t...
Orcinol asked 29/12, 2020 at 19:29
1
Solved
I was playing around with the prolog-coroutining predicates freeze/2 and frozen/2:
?- freeze(X,a=a), frozen(X,Goal).
?- freeze(X,a=a), freeze(Y,b=b), X=Y, frozen(X,Goal).
sicstus-prolog (version...
Wallinga asked 17/11, 2019 at 20:43
1
Solved
In the context of hacking clpz on sicstus-prolog I want to glimpse at the warren-abstract-machine code generated by SICStus Prolog.
As an example, let's dissect the following predicate!
is_list([...
Likely asked 31/8, 2019 at 9:4
5
Solved
I'm trying to solve a constraint processing problem in prolog.
I need to pack 4 squares of 5x5,4x4,3x3 and 2x2 in a grid of 10x10.
They may not overlap.
My variables look like this:
Name: SqX(i)...
Lifesaver asked 29/11, 2012 at 10:33
4
Solved
I have a program written in Sicstus Prolog using constraints.
My goal is to use labeling/2 and some other method to obtain a random instantiation of my variables.
Example:
X #> 2, Y #= 2*X, Z ...
Dzerzhinsk asked 1/1, 2012 at 15:23
1
Many Prolog systems have a freeze/2 predicate, a predicate
that should possibly have the name geler/2 since it was
even invented before Prolog-II.
Assume I have a condition on the same variable, b...
Increment asked 31/1, 2016 at 22:29
1
Solved
SICStus Prolog 4.3 added a JIT compiler for x86-64 processors.
I have two questions regarding the JIT compiler.
First, where can I find some documentation (papers, notes, or memos) on the capabil...
Lighthouse asked 3/3, 2015 at 20:16
3
Solved
Update: 11.6.2016
The baffling performance discrepancy which I had observed with SICStus Prolog 4.3.2 has completely disappeared with the recently released SICStus Prolog 4.3.3. Kudos!
I updated ...
Lynn asked 11/5, 2016 at 19:5
2
In SICStus Prolog, there is a hook for expanding a goal: goal_expansion/6 which is called both at compile time and at runtime during metacalling. These calls incur quite some runtime overhead which...
Podvin asked 30/3, 2016 at 19:53
2
How can I ensure that all modules (and ideally also all other files that have been loaded or included) are up-to-date? When issuing use_module(mymodule), SICStus compares the modification date of t...
Repetitive asked 1/1, 2016 at 18:44
3
This question is a followup from this question.
I'm running a large number of tests in Sicstus prolog:
runtest:-
t1,
t2,
t3,
.
.
t100.
Each test is standalone and will print its result to...
Gladstone asked 12/2, 2014 at 7:11
1
Solved
Right now, I'm learning how to interface SICStus Prolog with C code.
I would like to have/use/see a C implementation of "Hamming weight" of arbitrary-sized integers in SICStus Prolog version 4.
I...
Draconic asked 3/3, 2015 at 12:39
1
Solved
There are many families of scheduling problems. I'm looking into a problem where
I have families of jobs/tasks where the transition from one family to another family
require reconfiguring the machi...
Conjunctive asked 23/5, 2014 at 6:24
2
Solved
I'm working on a problem where I use the cumulatives/[2,3] predicate.
But I get very bad performance when I try to combine this with minimize in labeling
I have the following demo. 10 task, all wi...
Mcandrew asked 14/5, 2014 at 8:35
2
Solved
I'm working on some experiments for comparing different labeling heuristics in Sicstus Prolog.
But I keep getting into 'Resource error: insufficient memory'.
I'm pretty sure I'm doing something w...
Aleutian asked 10/2, 2014 at 19:45
3
Solved
I am working on a small prolog application to solve the Skyscrapers and Fences puzzle.
An unsolved puzzle:
A solved puzzle:
When I pass the program already solved puzzles it is quick, almost...
Beale asked 10/12, 2011 at 18:44
1
Solved
I'm having trouble inserting facts into an existing Prolog file, without overwriting the original contents.
Suppose I have a file test.pl:
:- dynamic born/2.
born(john,london).
born(tim,manche...
Czarina asked 27/5, 2010 at 14:19
6
I'm trying to find a solution for a query on a generalized Fibonacci sequence (GFS). The query is: are there any GFS that have 885 as their 12th number? The initial 2 numbers may be restricted betw...
Sahaptin asked 9/5, 2010 at 18:34
1
© 2022 - 2024 — McMap. All rights reserved.