From jan@swi.psy.uva.nl Thu Sep 27 16:20:38 2001
Received: from gollem.swi.psy.uva.nl (root@gollem [145.18.152.30])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f8REKcv03408;
	Thu, 27 Sep 2001 16:20:38 +0200 (MET DST)
Received: from localhost (localhost [[UNIX: localhost]])
	by gollem.swi.psy.uva.nl (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) id f8REKcl01839;
	Thu, 27 Sep 2001 16:20:38 +0200
From: Jan Wielemaker <jan@swi.psy.uva.nl>
Organization: SWI, University of Amsterdam
To: Armando Stellato <starred@tiscalinet.it>
Subject: Re: [SWIPL] Calling more than one predicate + askings to Jan
Date: Thu, 27 Sep 2001 16:01:07 +0200
X-Mailer: KMail [version 1.0.29.2]
Content-Type: text/plain
Cc: Nissim Broudo <nissim@math.ufl.edu>, prolog@swi.psy.uva.nl
References: <200108070053.MAA507668@atlas.otago.ac.nz> <01092710131305.25592@gollem> <3BB30163.4050506@tiscalinet.it>
In-Reply-To: <3BB30163.4050506@tiscalinet.it>
MIME-Version: 1.0
Message-Id: <01092716203804.28162@gollem>
Content-Transfer-Encoding: 8bit

On Thu, 27 Sep 2001, Armando Stellato wrote:
>using differents send(@prolog,Predicate) (i generally use a timer to 
>coordinate them but don't think is always necessary) in XPCE can 
>generate multiple predicates that share the same beliefs.

send(@prolog, Goal) is no different then calling Goal directly. 
Multiple XPCE timer events are kindly serialized, so nothing goes
in paralel (but I think I'm failing to grasp your intend).

>I think this should answer your request.
>Strictly speaking, i'd like to use many of the XPCE facilities (this 
>one, or the broadcast library for example) if they could be embedded in 
>the prolog engine.

? broadcast.pl is part of the XPCE library, but doesn't use XPCE itself,
so you can also use it without XPCE.  XPCE just a Prolog library
assisted by a foreign library.

>My idea is that in the future we should be able to create windows, 
>handle streams and do many other things in external languages and then 
>use Prolog only as a reasoning module.
>Jan, do you think next versions of Prolog will embed these facilities??

I'm not really sure what you want.  You can embed SWI-Prolog in almost
anything you please and you can use all its libraries.

>And, speaking about external languages and java in particular, now what 
>can i do to embed prolog in it?
>I've read the documentation for the java package jpl-1.0.1, but it seems 
>is still at development level.

I don't use Java, but I understand JPL is quite useable.

	Regards --- Jan

