Scala bindings to the Integer Set Library (ISL)
This project is in an experimental state, is not intended for serious or production use at this stage, and might never be. It was developed to support my own research and workflow. There are no guarantees of stability, maintenance, completeness, or particular direction.
- Scala types for core ISL constructs:
isl_set,isl_map, etc. - Simple method syntax to call most functions.
- Basic contextual argument usage for
isl_context. - Built using ISL's interface extractor and
jnr-ffi
- Documentation
- Tests
- Distribution beyond linux-x86
https://github.com/PapyChacal/ScalaISL/blob/main/src/main/scala-3/isl.scala
The build downloads the official ISL 0.28 release archive from
libisl.sourceforge.io,
verifies its SHA-256 checksum, and builds it locally. The Scala-specific
interface generator remains in this repository under isl-interface-scala/.
It is built out of tree against ISL 0.28's private extractor generator sources;
upgrading ISL therefore requires checking that internal interface explicitly.
The downloaded ISL source tree is never patched or modified.
The currently published artifact bundles a Linux x86-64 native library using
ISL's imath-32 backend, so consumers do not need a system ISL or GMP
installation.
./mill compilein src/main/scala-3/isl.scala
./mill runto build and use as a dependency locally, e.g. try it out on non-linux and/or non-x86.
./mill publishLocal