Re: Networking in Prolog - a survey



On 21 Mag, 21:37, A.L. <alewa...@xxxxxxxxxx> wrote:
I have briefly looked at PrologBeans. It seems similar to what I had
in mind, although of course more complex (in my case, the prolog side
and the java side are always in the same process).

Then, I don't unserstand your problem. If Prolog is embedded into
Java, then outside world knows only about Java. All networking ca nbe
done on Java level

A.L.

My problem is: I want two instances of my Prolog interpreter to
exchange data. So I need to offer to the user a Prolog API for
networking. I was wandering what was 1. the easiest way for me to do
it (of course people on this group can't really know it since it
depends on the internals of the interpreter, but may have interesting
ideas) and 2. the common way to do it, by looking at other Prolog
implementations. Of course I'd use the Java networking libraries,
since the interpreter is written in Java. But there are many ways to
offer that functionality to the Prolog user, some involve also
offering a threading api, some not, etc.

Cheers
Alessio
.



Relevant Pages

  • Re: Networking in Prolog - a survey
    ... main prolog interpreter loop from needing to be multi-threaded by ... interpreter loop to run, it will have to wait for the users query to ... allow to run the event handler code with a separate prolog stack, ... If I limit the handling of threads to be only on the Java side, ...
    (comp.lang.prolog)
  • Re: Networking in Prolog - a survey
    ... I coded it in Java ... kindly asked if it was possible to extend the interpreter with various ... the state of the art in Prolog networking libraries to see if I could ...
    (comp.lang.prolog)
  • Re: Recommendations for a free Prolog interpreter in Java
    ... >> What is the advantage of using Prolog in a Java environment? ... > Prolog in Java is good for the present Internet / distributed ... >> code running on server. ...
    (comp.lang.prolog)
  • Re: Prolog in a Java Tomcat environnement
    ... >> I'm now upgrading to the latest stable version of swi because in mine ... to be carefull with install stuff and file naming, ... > What Java SDK do you use? ... > Run the JPL examples (Java and Prolog) to verify that your ...
    (comp.lang.prolog)
  • Re: In which cases/problems is Prolog faster than Java?
    ... We've OOP languages built from functional languages foundations ... they are envy of imperative programming styles. ... still a predicate either in plain Prolog or encapsulated in a Prolog ... People often use Java not because its OO features per se but because ...
    (comp.lang.prolog)