Search found 4 matches

by Rangarajan
28 Jul 2019 13:45
Forum: Visual Prolog
Topic: Compiled clauses
Replies: 10
Views: 4394

Re: Compiled clauses

Hi,
I meant no offence in my post. What I asked first was a genuine question. There was no need to disguise my intentions! The follow up was just another use case for binary representation.

Regards,
Rangarajan
by Rangarajan
25 Jul 2019 11:30
Forum: Visual Prolog
Topic: Compiled clauses
Replies: 10
Views: 4394

Re: Compiled clauses

Thanks to all who have responded. I get the idea. One reason why one might want to store the facts/clauses in a binary format is to protect IP. Suppose these facts have sensitive information (e.g. business logic related data) that I don't want the end user to know, I would not want to keep it in a t...
by Rangarajan
20 Jul 2019 10:06
Forum: Visual Prolog
Topic: Compiled clauses
Replies: 10
Views: 4394

Re: Compiled clauses

Thanks Martin! Assuming I have a text file that contains just "facts" (something like your "myFact"), I would like to load them all into the program, save them in a binary format, and then when needed, load them all in one go. In your example, I see that you are saving and reading the facts one by o...
by Rangarajan
19 Jul 2019 12:31
Forum: Visual Prolog
Topic: Compiled clauses
Replies: 10
Views: 4394

Compiled clauses

Hi, I am new to Visual Prolog. It is going to take me a while to get used to the strong typing, etc. I have a quick question: If I have many "Clauses" files, each containing hundreds of clauses (the standard Prolog clauses), is there way to load them all and save the combined set as "compiled" binar...