Has anyone tried building a Java interface to Poplog (actually, to
Prolog)?
I've built one in which I have a "Prolog client" and a "Prolog server".
It's a normal socket-based client/server setup, very easy to do in Java.
The server sits and listens for attempted connections from clients: when
it gets one, it creates a socket to the client, and then spawns a Prolog
process. The client can send commands such as Assert <clause> and Call
<clause> down the socket to the server which passes them on to Prolog and
then returns output back to the client.
This works, but is fairly basic and probably not terribly efficient. I
wondered whether anyone else had done something similar, preferably
including an interface for transferring large data structures efficiently
between the two languages.
Jocelyn
|