Calling Julia from within Java: JuliaCaller

Hi folks,

Due to the discussion in Running Julia from Java - What is crazier?, I am introducing a new project for calling Julia from within Java. Despite it is in its early stages, the package implements basic external calling of Julia from Java and a skeleton of JSR 223 (Java scripting interface) implementation is ready for future development.

The package simply starts an external Julia process, injects a script that listens TCP connections (multiple ones if needed) on a given port, accepts the statements and expressions and returns the results in JSON format. The JSON is then parsed to Java objects in Java side. The performans overhead consists of stream connections and JSON parsing (both encoding and decoding).

The project JuliaCaller is hosted on GitHub repo with Apache license.

Any contributions are welcome.

All the best :slight_smile: