-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request library(aggregate) from SICStus Prolog #59
Comments
With Novacore and Liblets its not needed anymore. |
Adding those predicates would still be an enhancement for Ciao. I reopen it. |
Is there a ciao version where this is already available?
But it doesn't work, when I call it with this here:
Whats missing, a meta predicate declaration before aggregate_all? |
Random number generation is in library(random): http://ciao-lang.org/ciao/build/doc/ciao.html/random.html Calling |
(I edited the previous comment) |
random/3 was not part of my comment or ticket here, the code I random/3 generates in the interval [L,H] whereas SWI-Prolog any comment about random/3 on Ciao Prolog GitHub issues. know. Does anybody care Ciao and SWI-Prolog compatibility? Maybe this can point the way forward? |
Interestingly that was just what I defined:
But why does it throw a random/3 existence error. Should I place a meta_predicate
but the error messsage says:
Will try with a meta predicate directive soon. |
Humm, it works for me:
Is this what you are doing? |
Here is a screenshot of what I already copy pasted into the ticket here: The scrambling of the input, the 3 blanks ' ' is an artefact of your Ciao looks more pretty. It has also removed Note:, yes, yes, yes, aborted. |
Ah, I understand now: make aggregate a module (just put |
Now I could run it. The error in Ciao Prolog is much larger than the missing aggregate_all/3 and msb/1 evaluable function:
And this helper code (file aggregate.p):
|
Also a little strange that it is exactly 100.0 in all runs? |
I did a search in this repository about
aggregate_all/3
. ButI didn't find it. Is this correct that Ciao Prolog has no
library(aggregate) from SICStus Prolog?
An Aggregation Operator for Data-Base-Style Queries
https://sicstus.sics.se/sicstus/docs/4.6.0/html/sicstus/lib_002daggregate.html
I am somehow used to it since it also found its way into
SWI-Prolog. Would it be possible to support the same in
Ciao Prolog as well? Its not urgent, just a feature request.
Here is an example test case:
The text was updated successfully, but these errors were encountered: