Re: [Flora-users] Calling Java from Flora-2
Brought to you by:
kifer
From: Rangarajan K. <ra...@mm...> - 2018-11-09 22:42:53
|
Thanks. I got it. Regards, Rangarajan > On 10-Nov-2018, at 2:48 AM, Michael Kifer <mic...@co...> wrote: > > > > On 11/9/18 6:47 AM, Rangarajan Krishnamoorthy wrote: >> Hi, >> Is there a way to call Java code (or C/C++ code) from Flora-2 (on Windows 64 bit)? ErgoAI appears to support this through the \e2j package. >> >> Regards, >> Rangarajan > > Flora-2 cannot call Java -- this feature is available only in ErgoAI. (But Java can call Flora-2 and Ergo, of course.) > > Both Ergo and Flora-2 can call C/C++. What you need to do is to create a C-module of XSB and then call its functions using @\prolog. > To write XSB's C-module, one needs to know XSB's C API, which is described in the XSB Manual, vol. 1 <http://coherentknowledge.com/coherent-links/XSB-manual-vol1.pdf>, Chapter "Foreign Language Interface". > Being a C interface, it is quite low-level, one should add. > > -- > > --- michael > > > _______________________________________________ > Flora-users mailing list > Flo...@li... <mailto:Flo...@li...> > https://lists.sourceforge.net/lists/listinfo/flora-users <https://lists.sourceforge.net/lists/listinfo/flora-users> |