Created
December 15, 2021 19:19
-
-
Save xicubed/752e88d73b109370b892bd59be3445b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; from the jlink.clj | |
; mal using wolfram engine so far is all | |
; (def ^:private default-mac-base-path "/Applications/Mathematica.app/Contents") | |
(def ^:private default-mac-base-path "/Applications/Wolfram Engine.app/Contents") | |
; mal appends to above | |
;(def ^:private jlink-suffix "/SystemFiles/Links/JLink/JLink.jar") | |
(def ^:private jlink-suffix "/Resources/Wolfram Player.app/Contents/SystemFiles/Links/JLink/JLink.jar") | |
; mal again not using full Mathematica appends to base | |
; (def ^:private mathlink-macos-suffix "/MacOS/MathKernel") | |
; (def ^:private mathlink-macos-suffix "/Applications/Wolfram Engine.app/Contents/Resources/Wolfram Player.app/Contents/MacOS/WolframKernel") | |
(def ^:private mathlink-macos-suffix "/MacOS/WolframKernel") | |
; -- to run from terminal: | |
; also note instead of using WL in the documentation had to use wl/wl: | |
09:24 $ clj -A:dev | |
Clojure 1.10.3 | |
user=> (dev) | |
Adding path to classpath: /Applications/Wolfram Engine.app/Contents/Resources/Wolfram Player.app/Contents/SystemFiles/Links/JLink/JLink.jar | |
:loaded | |
dev=> (wl/wl '(Dot [1 2 3] [4 5 6])) | |
32 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment