-
Notifications
You must be signed in to change notification settings - Fork 2
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
Reconsult #5
Comments
P.S.: I am fully aware that these details might take months if Natural Language Processing Techniques in Prolog |
I guess it stopped working when we added threads. I'll check it. Thanks for the report. |
Predicates are fine. It's a problem of the sandbox. When you run a goal, the session restarts, loads the program and runs the goal. |
But with Tau Prolog there might be less problems. You could |
The Webassembly Prototype of SWI-Prolog can do it: |
You could reset the sesssion when the end-user presses the Browser a reconsult clauses don't get duplicated. You could reconsult example where you see that reconsult doesn't duplicate I am consulting an running it in SWI7: Now I change the file: And I ask SWI7 for make/0 and rerun: The documentation says consult, but consult always means reconsult: |
The session and the consulted code should be 2 different states. was named foo. In Tau Prolog you don't have a name for the program. you could consider it the single SWISH notebook, hence a program. |
Take your time, this can be kind of difficult under the hood. There In as far the reconsult policy, also in Prolog systems such as SWI7 from the changed file. And you do not really abolish predicates during SWI7 consult works like this, and I have also implemented it like that clauses, thats why they can report -1 clause here: In my system I am not going that far... :-( :-) |
According to the ISO core standard, it is allowed to dynamically
create clauses of a predicate, even if it doesn't have a dynamic
declaration. assertz/1 and friends are allowed to do this.
But since it is implicit dynamic, it should then be retrievable
via the clause/2 builtin. Currrently I get the following:
The text was updated successfully, but these errors were encountered: