Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question concerning versions #99

Open
GaryKopp opened this issue Oct 3, 2022 · 3 comments
Open

Question concerning versions #99

GaryKopp opened this issue Oct 3, 2022 · 3 comments

Comments

@GaryKopp
Copy link

GaryKopp commented Oct 3, 2022

Will JPL work with OpenJDK 17? The Wiki calls for Java 11. I'm also confused about JPL and SWI Prolog versions. A github issue seems to suggest that JPL works with SWI 8.3.8, but the latest (?) SWI doc calls JPL a package for SWI 7.x. Can anyone straighten me out on this?

@JanWielemaker
Copy link
Member

JPL is since long bundled with the SWI-Prolog source and most binary distributions. And yes, recent versions run with JDK17 AFAIK.

@anionic
Copy link
Contributor

anionic commented Oct 4, 2022

Yes; JPL7 (the current, bundled version of JPL) interfaces to any compliant JVM from Java 8 onwards (see below).

Its jpl.c uses the JVM's Invocation API, which must be supported by all JVMs.

Its class files (in jpl.jar) are currently built to bytecode version 52, i.e. Java 8, and will not work with earlier JVMs, but (thanks to Java's traditional backwards bytecode compatibility) should work with any future JVM version.

Note to JPL maintainers: avoid "modernising" the source code without compelling reason, or otherwise building it to be incompatible with older JVMs; Java 8 will be around for a while yet, if not indefinitely...

NB JPL7 is a rewrite of JPL 3.x.x necessitated by breaking changes to the term model in SWI-Prolog 7

@GaryKopp
Copy link
Author

GaryKopp commented Oct 4, 2022

Many thanks for the reassuring answers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants