Separate process?

28 views
Skip to first unread message

Blake McBride

unread,
Apr 11, 2024, 11:54:58 AM4/11/24
to ErgoAI and XSB Users Forum
Greetings,

I am very interested in using ErgoAI in my Java application. Currently I am using Jess.  My main problem with Jess is its closed-source model.  However, many of its features fit well with my needs.

I am using Jess in a milti-threaded web application.  Again, Jess fits my use-case well in terms of its integration and support of my application architecture.  I want to better understand how ErgoAI integrates with a mutli-threading Java application.  

The first question I have involves the basic archetechure of the system as it relates to a multi-threading Java application.

Looking over the ErgoAI docs, it appears that ErgoAI runs in a seperate process from my Java application.  Is that true?  Is that always true?

I will have several other questions that depend on the answer to this question.

Thank you very much!

Blake McBride

Michael Kifer

unread,
Apr 11, 2024, 1:05:32 PM4/11/24
to Blake McBride, ErgoAI and XSB Users Forum
Yes, ErgoAI would run as a separate process. They can communicate via files or via xsb's socket interface.
The Java interface is based on sockets, but the Python interface is different.
Here Python and ErgoAI run in the same process.

Michael

Apr 11, 2024 11:55:00 Blake McBride <blak...@gmail.com>:

--
You received this message because you are subscribed to the Google Groups "ErgoAI and XSB Users Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ErgoAI-XSB-for...@coherentknowledge.com.
To view this discussion on the web visit https://groups.google.com/a/coherentknowledge.com/d/msgid/ErgoAI-XSB-forum/adc59000-6040-4fa1-8e5c-da6dd43a0ad6n%40coherentknowledge.com.

Blake McBride

unread,
Apr 11, 2024, 1:53:49 PM4/11/24
to ErgoAI and XSB Users Forum, Michael Kifer, ErgoAI and XSB Users Forum, Blake McBride
Thanks for the response, Michael.

My application is a multi-threaded one.  The logic capabilities of the system need to have a common base and then a thread-specific independent context.  Is that easy to do with ErgoAI?

Thanks!

Blake

Michael Kifer

unread,
Apr 11, 2024, 2:17:56 PM4/11/24
to Blake McBride, ErgoAI and XSB Users Forum
You can create several ErgoAI processes that threads would talk to using load balancing. But you will have to invent some protocol to keep the knowledge base in sync .

Apr 11, 2024 13:53:51 Blake McBride <blak...@gmail.com>:

Blake McBride

unread,
Apr 11, 2024, 2:22:15 PM4/11/24
to ErgoAI and XSB Users Forum, Michael Kifer, ErgoAI and XSB Users Forum, Blake McBride
Ooh.  Too much for me!  Thanks!
Reply all
Reply to author
Forward
0 new messages