The reason we would not like to do IPC with GProlog is the performance. Even though IPC with pipes is not that slow, the performance bottle neck may be the IPC if all other (C/C++) stuffs in the code run fast.
a. solution query – anc(X, john).
b. judgement query – anc(john, bob).
c. dynamic function – asserta(parent(dave, john)).
gplc is eventually a wrapper for gcc, which allows you to compile pl and C file the same time to generate the binary containing all the logic functionalities you need in GProlog. More over, all the gcc parameters could be passed from gplc. For details, please refer to the code repo down there.
This entry was posted in AI/ML, Programming and tagged C, gplc, gprolog. Bookmark the permalink.