Re: java calling prolog
- From: Jan Wielemaker <jan@xxxxxxxxxxxxxxxxxxx>
- Date: 25 Nov 2005 09:19:49 GMT
On 2005-11-25, tushar.saxena@xxxxxxxxx <tushar.saxena@xxxxxxxxx> wrote:
> SICSTUS Prolog provides an interface called JASPER which is just waht
> you are looking for. But then again SICSTUS is expensive, so ......
For SWI-Prolog there is JPL which is based on JNI to create calls
between Prolog and Java and there is InterProlog, which uses network
communication. I think both are available for a few other Prolog systems
as well. I try to use neither. I've been closely involved with people
using notably JPL for various projects. I convinced some of them to give
up on the close link between Prolog and Java and instead run Prolog as a
(web-)server and use either an application-specific proprietary protocol
or HTTP+XML to access Prolog as a `logic server' component. The overall
experience is that this approach is much more flexible, stable, easier
to insall (deploy) and easier to debug (=develop). I recomment this
approach for applications where the overhead of network communication is
affortable.
I've also seen the use of Java from Prolog to access databases (JDBC)
and other (mostly network) resources. Generally, try to avoid it.
Compared to accessing these resources through C/C++, the Java approach
is slow, `bloadware', difficult to install and often less stable. For
many of these resources there are various good plain C or C++ libraries.
--- Jan
.
- References:
- java calling prolog
- From: timasmith
- Re: java calling prolog
- From: binnetcorp
- Re: java calling prolog
- From: tushar . saxena
- java calling prolog
- Prev by Date: Re: Sublist Pattern Matching
- Next by Date: Re: Sublist Pattern Matching
- Previous by thread: Re: java calling prolog
- Next by thread: Re: java calling prolog
- Index(es):
Relevant Pages
|
|