DLL interface for Lua & C++

Philipp Kraus <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
Hello,

I have worked with SWIProlog for some years ago and I would like to use it for an own project. The project based on C++ (also C and a little bit Fortran) and Lua.
I have created objects in Lua which should store Prolog information (atoms, etc). I would like to use Prologs planning and expert system. Each Lua object is mapped
to it own C++ object and it stores its own dataset. This system is scaled over different CPU cores (at the moment 32) with MPI. Each object can be moved from one to another core.

So I would like to create Prolog calls in Lua. I have found the C++ API reference to SWIProlog, so I can create a SWIProlog instance on my C++ side and so I can mapped the reference
to Lua (Lua is written in C). My Lua objects stores the, data which should be used by Prolog, but the data can be modified many times and the dataset is small. So can I handle the
dynamic dataset with SWIProlog in a fast way? I know only the retract / consult command, but I think this is very slow. I have got more than 10^6 Lua objects with own datasets and each
object call Prolog. 

So do you have got some useful ideas to create a structure with Lua, C++ and SWIProlog in a fast way?

Thanks a lot

Phil
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.