(close-interpreter itp)
closes the shared interpreter
closes the shared interpreter
(eval-command-fn op)
(eval-command-fn op key)
helper function to input command
helper function to input command
(eval-command-jep {:keys [id bus]} command)
inputs command input jep context
@(eval-command-jep +jep+ {:op :exec :body "a = 1"}) => nil
@(eval-command-jep +jep+ {:op :get :body "a"}) => 1
inputs command input jep context @(eval-command-jep +jep+ {:op :exec :body "a = 1"}) => nil @(eval-command-jep +jep+ {:op :get :body "a"}) => 1
(eval-exec-interpreter itp string)
executes script on the interpreter
executes script on the interpreter
(eval-exec-jep jep body)
(eval-get-interpreter itp body)
gets a value from the interpreter
gets a value from the interpreter
(eval-get-jep jep body)
(invoke-ptr-jep {:keys [lang] :as rt} ptr args)
invokes a pointer in the runtime
invokes a pointer in the runtime
(jep-bus)
gets or creates a runtime bus for thread isolation
gets or creates a runtime bus for thread isolation
(jep-handler interpreter)
creates a loop handler from interpreter
(jep:temp-interpreter itp (let [handler (jep-handler (atom itp))] (handler {:op :exec :body "a = 1"}) (handler {:op :get :body "a"}))) => 1
creates a loop handler from interpreter (jep:temp-interpreter itp (let [handler (jep-handler (atom itp))] (handler {:op :exec :body "a = 1"}) (handler {:op :get :body "a"}))) => 1
(jep:temp-interpreter itp & body)
gets a value from the interpreter
gets a value from the interpreter
(make-interpreter)
makes a shared interpreter
(jep/make-interpreter) => jep.SharedInterpreter
makes a shared interpreter (jep/make-interpreter) => jep.SharedInterpreter
(rt-jep)
(rt-jep m)
creates and starts the runtime
creates and starts the runtime
(rt-jep:create {:keys [id bus] :as m :or {bus (jep-bus) id (h/sid)}})
creates a componentizable runtime
creates a componentizable runtime
(rt-jep? obj)
checks that object is a jep runtime
checks that object is a jep runtime
(start-jep {:keys [id bus state interpreter] :as jep})
starts up the jep runtime
starts up the jep runtime
(stop-jep {:keys [id bus state interpreter stop-fn] :as jep})
stops the jep runtime
stops the jep runtime
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close