Re: Recommendations for a free Prolog interpreter in Java

From: Cameron Hughes (cahughes_at_cc.ysu.edu)
Date: 01/29/04

  • Next message: C. M. Sperberg-McQueen: "Re: Recommendations for a free Prolog interpreter in Java"
    Date: Thu, 29 Jan 2004 10:50:18 -0500
    
    

    Paul Singleton wrote:
    >
    > AFAIK all the Prolog-interpreter-in-Java projects are dormant,
    > but it might be possible (and timely) to awake one of them.
    >
    > If you have reviewed all those listed in Robert Tolksdorf's
    > excellent (and apparently actively maintained) list, which
    > he has recently moved to
    >
    > http://www.robert-tolksdorf.de/vmlanguages
    >
    > then some on this group would be interested in your conclusions.
    > We need to know which interpreters are basically sound, not
    > inherently hopelessly inefficient and are sufficiently well
    > structured and documented to be made feature-complete a bit
    > at a time and with less effort than starting from scratch :-)
    >
    > I wonder whether tuProlog is a candidate?
    >
    > Your requirements could also be met by a Prolog-to-Java (or
    > Prolog-to-JVM-bytecode) compiler: have a look at Prolog Cafe
    >
    > http://kaminari.scitec.kobe-u.ac.jp/PrologCafe/
    >
    > Incidentally, Mercury
    >
    > http://www.cs.mu.oz.au/research/mercury/
    >
    > has (still undocumented) compiler options for generating
    > Java source...
    >
    > Paul Singleton
    >
    > S wrote:
    >
    > > e_bruton@hotmail.com (Elizabeth Bruton) wrote in message news:<9e9d15ff.0401161045.647233ae@posting.google.com>...
    > >
    > >>Hi smileyhamster
    > >>Being a newbie myself too, I would say that the only Java/Prolog
    > >>program out there that I know of is a Java interface for Prolog called
    > >>JPL (http://sourceforge.net/projects/jpl/) and which is listed on the
    > >>Swi-Prolog website at
    > >>http://gollem.swi.psy.uva.nl/twiki/pl/bin/view/Foreign/JavaInterface
    > >
    > >
    > > I found there's actually many available ones you can use. A good list
    > > of them is at:
    > > http://grunge.cs.tu-berlin.de/~tolk/vmlanguages.html#logic
    > >
    > > I have trouble finding a good one though because some aren't free,
    > > aren't mature etc. I would just like to know if anyone could recommend
    > > one these types of Prolog systems that work completely in Java.
    > >
    > > The problem with using interfaces in Java that talk to Prolog
    > > implementations is that it requires the user to have the correct
    > > Prolog implementation (like SWI) installed on their computer. I want
    > > people to be able to easily try out my project online as most people
    > > do not have the patience to download, unzip, configure and run a
    > > program just to see what it's like.
    > >
    > > Thanks.

    Just curious,

    What is the advantage of using Prolog in a Java environment?

    The JVM is already a layer or so on top of the instruction set

    If the Prolog is interepreted and runs as a layer on top of Java this

    seems like there would be some performance issues.

    Why would this be better than say using the JNI to connect
    to native prolog code(e.g. using FLI of SWI-Prolog). If the
    objective is to access Prolog in a web server then is performance
    an issue?

    Even if the objective is to let a Java client have access to
    Prolog, it just seems like it would be easier and possibly
    more efficient to do a post from the Java client to Prolog native
    code running on server.

    I guess I'm just trying to understand what's the attraction for
    Prolog running on top of Java. Unless we're talking about JavaOS,
    or dedicated Java machines where's the advantage?

    Thanx

    Cameron Hughes
    Programmer/Analyst
    Youngstown State University
    http://www.cc.ysu.edu/~cahughes


  • Next message: C. M. Sperberg-McQueen: "Re: Recommendations for a free Prolog interpreter in Java"

    Relevant Pages

    • 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: 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)
    • 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: Prolog in a Java Tomcat environnement
      ... Paul Singleton a écrit: ... > embedding SWI-Prolog in servlets, and I'll email you a sample web ... > into Prolog, and you're welcome to try this out and comment on it. ... prolog will act as a tiny webserver in marge of Tomcat? ...
      (comp.lang.prolog)