Liking cljdoc? Tell your friends :D

rt.jep


*bus*clj


*interpreters*clj


+init+clj


+startup+clj


close-interpreterclj

(close-interpreter itp)

closes the shared interpreter

closes the shared interpreter
raw docstring

eval-command-fnclj

(eval-command-fn op)
(eval-command-fn op key)

helper function to input command

helper function to input command
raw docstring

eval-command-jepclj

(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
raw docstring

eval-exec-interpreterclj

(eval-exec-interpreter itp string)

executes script on the interpreter

executes script on the interpreter
raw docstring

eval-exec-jepclj

(eval-exec-jep jep body)

eval-get-interpreterclj

(eval-get-interpreter itp body)

gets a value from the interpreter

gets a value from the interpreter
raw docstring

eval-get-jepclj

(eval-get-jep jep body)

invoke-ptr-jepclj

(invoke-ptr-jep {:keys [lang] :as rt} ptr args)

invokes a pointer in the runtime

invokes a pointer in the runtime
raw docstring

jep-busclj

(jep-bus)

gets or creates a runtime bus for thread isolation

gets or creates a runtime bus for thread isolation
raw docstring

jep-handlerclj

(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
raw docstring

jep:temp-interpretercljmacro

(jep:temp-interpreter itp & body)

gets a value from the interpreter

gets a value from the interpreter
raw docstring

kill-jepclj

(kill-jep jep)

kills the jep runtime

kills the jep runtime
raw docstring

make-interpreterclj

(make-interpreter)

makes a shared interpreter

(jep/make-interpreter) => jep.SharedInterpreter

makes a shared interpreter

(jep/make-interpreter)
=> jep.SharedInterpreter
raw docstring

rt-jepclj

(rt-jep)
(rt-jep m)

creates and starts the runtime

creates and starts the runtime
raw docstring

rt-jep:createclj

(rt-jep:create {:keys [id bus] :as m :or {bus (jep-bus) id (h/sid)}})

creates a componentizable runtime

creates a componentizable runtime
raw docstring

rt-jep?clj

(rt-jep? obj)

checks that object is a jep runtime

checks that object is a jep runtime
raw docstring

start-jepclj

(start-jep {:keys [id bus state interpreter] :as jep})

starts up the jep runtime

starts up the jep runtime
raw docstring

stop-jepclj

(stop-jep {:keys [id bus state interpreter stop-fn] :as jep})

stops the jep runtime

stops the jep runtime
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close