Replies: 4 comments 13 replies
-
This response from @UWN is probably the answer. |
Beta Was this translation helpful? Give feedback.
-
Can you maybe queue the goals individually, i.e., an API for adding a single goal to an existing queue? The argument for the single goal would have specifier |
Beta Was this translation helpful? Give feedback.
-
Just a guess: Sometimes you use explicit qualification for |
Beta Was this translation helpful? Give feedback.
-
Just throwing an idea, instead of "adding" tasks which is very procedural, is it possible to do it more declaratively? For example mark predicates with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have run across this problem a few different times.
Awhile ago I had a failed attempt to implement to implement
cond_t/2
.Recently I've been struggling with the
test_framework
module having (seemingly) different behavior than user code.Most recently, I've been struggling with the
library(async)
PR.I've had to resort to this:
This seems to work for user code (still investigating) but does not work for the test framework code!
Meaning:
works but
but it does work if I fully supply the modules:
And I believe this has to do with the "list of goals" problem:
Note that
Tests
is a "list of goals" here.This is not to say that there is anything wrong with the testing framework, per se, it's more pointing out that the "list of goals" problem is a really tricky problem.
I have tried a LOT of different things to attempt to deal with this problem but I think what I am realizing is maybe it's just not a very good API in Prolog?
Is that the consensus? Does anyone have any advice on how to deal with this?
To be clear, the original definition of
async_event_loop/1
wasVery clean, but we lose the module data necessary to call the metagoals later.
Beta Was this translation helpful? Give feedback.
All reactions