enable Prolog applications to exploit any Java classes, instances, methods etc.JPL is developed in the GitHub packges-jpl repository withn the SWI-Prolog organization. Check a high-level overview of its many versions here.įor the JPL source code please refer to its GitHub repository. JPL has been integrated into the full SWI-Prolog distribution starting with version 5.4.x, including binaries for MS-Windows and a Linux RPM. The low-level interface is provided for C programmers who may wish to port their C implementations which use the FLI to Java with minimal fuss. JPL is designed in two layers, a low-level interface to the Prolog FLI and a high-level Java interface for the Java programmer who is not concerned with the details of the Prolog FLI. In its current version, JPL supports the embedding of a Prolog engine within the Java VM as well as the embedding of a Java VM within Prolog, so that, for example, one could take advantage of the rich class structure of the Java environment from within Prolog. The current version of JPL only works with SWI-Prolog. JPL is not a pure Java implementation of Prolog it makes extensive use of native implementations of Prolog on supported platforms. JPL uses the Java Native Interface (JNI) to connect to a Prolog engine through the Prolog Foreign Language Interface (FLI). JPL is a set of Java classes and C functions providing a bidirectional interface between Java and Prolog.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |