This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-22
Channels
- # announcements (1)
- # aws (4)
- # beginners (73)
- # bristol-clojurians (1)
- # calva (7)
- # cider (5)
- # cljs-dev (11)
- # cljsrn (3)
- # clojure (30)
- # clojure-europe (24)
- # clojure-italy (2)
- # clojure-nl (3)
- # clojure-spec (7)
- # clojure-uk (69)
- # clojurescript (109)
- # cursive (21)
- # datascript (1)
- # datomic (72)
- # events (1)
- # fulcro (5)
- # graalvm (2)
- # helix (12)
- # hoplon (12)
- # jobs (2)
- # juxt (2)
- # kaocha (7)
- # keechma (1)
- # lambdaisland (5)
- # meander (18)
- # off-topic (52)
- # pathom (9)
- # re-frame (18)
- # reagent (5)
- # reitit (7)
- # sci (6)
- # shadow-cljs (76)
- # sql (9)
- # testing (4)
- # tools-deps (14)
- # xtdb (28)
looks like this atm:
(ns malli.sci
(:require #?(:clj [borkdude.dynaload-clj :refer [dynaload]]
:cljs [borkdude.dynaload-cljs :refer-macros [dynaload]])))
(defn evaluator [options]
(let [eval-string* @(dynaload 'sci.core/eval-string* {:default nil})
init @(dynaload 'sci.core/init {:default nil})
fork @(dynaload 'sci.core/fork {:default nil})]
(if (and eval-string* init fork)
(let [ctx (init options)]
(fn eval [s] (eval-string* (fork ctx) s))))))