Re: pengines extension to html_requires

Jan Wielemaker <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 02/08/2014 04:09 PM, Anne Ogborn wrote:
> Looking again at the pengines API, there is pengine_send and pengine_pull_response
> 
> not to mention pengine_ask_around, and 
> 
> A pengine is comprised of:
>     * A Prolog thread
>     * A dynamic clause database, private to the pengine, into which other processes may assert clauses. These clauses reside in the module pengine_sandbox.

Depends what you mean with `other processes'.  Typically the server imports
the application's API into that module.

>     * A message queue for incoming requests    <-- how to use?
>     * A message queue for outgoing responses   <-- how to use?

Not.  The only thing you can achieve is messing up the protocol.
Note that at the moment the input is the thread's default queue.
That might change to avoid unintended interaction.

> Must confess, I'm lost what many of these predicates do.

I think some of these should become private.  Torbjörn?

	Cheers --- Jan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.