Hello all,
Any Prolog users out there might be interested in an add-on package for SWI Prolog which runs an embedded Julia and allows computations to be done in Julia, building Julia expressions from Prolog terms, converting Prolog terms into appropriate Julia types (including multidimensional arrays and tuples), and converting Julia result types in to Prolog terms.
The package is installed in SWI Prolog using pack_install(pljulia)
. The information page on the main SWI site is here: "pljulia" pack for SWI-Prolog
As I’ve only just started using the Julia C API, I’m probably making some mistakes, in particular, in handling garbage collection, but it seems to be working ok so far. I’m also probably missing a lot of useful things I could be doing with the API. If you’re interested, the code is here: https://github.com/samer--/pljulia
cheers,
Samer