scicloj / wolframite

An interface between Clojure and Wolfram Language (the language of Mathematica)
Eclipse Public License 2.0
46 stars 2 forks source link

Core: More robust JLink detection; support WolframEngine on Linux #25

Closed holyjak closed 5 months ago

holyjak commented 6 months ago

Replace bunch of hardcoded, interrelated paths with a map of platform -> engine/mathematica -> (base) path, mathlink suffix. Make sure we support both Wolfram Engine and Mathematica on all 3 paltforms (though I couldn't verify all the paths).

Auto-detect, whether we have a Math. or W.E. installation available.

Support system properties in addition to env. vars for setting paths.

More informative error messages.

Upgrade to Clojure 1.11 -> parse-long

Dev: Add slf4j-simple so that when we use clojure.tools.logging, we will see some output.

holyjak commented 6 months ago

FIXME

It works on osx with W. Engine, but not with Mathematica - there, the kernel fails to be started for some reason :'(

Update: This could be b/c my Mathematica lacks license, as per https://github.com/ayonga/frost-dev/issues/34#issuecomment-412357807

holyjak commented 5 months ago

Waiting for @light-matters to verify this on Windows and with Mathematica 🙏

light-matters commented 5 months ago

Merged pull request after resolving string<>java file mismatch and testing operation on Windows 10 (Mathematica installation), Arch Linux (Wolfram Kernel) and Manjaro Linux (Wolfram Kernel).