This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-20
Channels
- # aleph (11)
- # announcements (3)
- # babashka (35)
- # babashka-sci-dev (28)
- # beginners (29)
- # calva (51)
- # cider (33)
- # clj-kondo (26)
- # clj-on-windows (1)
- # clojure (40)
- # clojure-austin (1)
- # clojure-europe (47)
- # clojure-nl (9)
- # clojure-norway (7)
- # clojure-uk (5)
- # clojurescript (69)
- # conjure (30)
- # cursive (7)
- # data-science (9)
- # datomic (2)
- # etaoin (10)
- # events (2)
- # fulcro (1)
- # graalvm (1)
- # gratitude (6)
- # helix (16)
- # honeysql (20)
- # hyperfiddle (14)
- # inf-clojure (2)
- # jobs (1)
- # jobs-discuss (12)
- # kaocha (9)
- # leiningen (2)
- # lsp (4)
- # malli (8)
- # music (9)
- # off-topic (12)
- # pathom (10)
- # portal (14)
- # practicalli (15)
- # re-frame (27)
- # reitit (7)
- # remote-jobs (4)
- # sci (37)
- # shadow-cljs (16)
- # sql (8)
- # tools-deps (6)
- # vim (6)
- # xtdb (21)
https://clojars.org/org.babashka/sci.impl.types -> is there a git repo for that somewhere?
Everything that contain .impl
in the name should be considered private and may change at any time
timbre logging: how difficult is it to convert a macro like that:
(defmacro info [& args] `(log! :info :p ~args ~{:?line (fline &form)}))
Do something like this:
(defn ^:macro info [&form _ & args]
`(log! :info :p ~args ~{:?line (fline &form)}))
(sci/copy-var info tns)
(sci/binding [sci/out *out*] ;; this enables println etc.
(scia/eval-string* ctx-repl code))
when I do this and I eval "(println 343)" I get this error message: "Attempting to call unbound fn: #'clojure.core/print-fn"
It is weird, because I use sci in clojurescript.I found a missing feature for async compile: async require. A require can also need to load a module asyncronous. This is helpful if there are reagent functions that vizualise something. And they will be in a lazy loaded module 🙂
https://github.com/babashka/sci/blob/master/doc/async.md#lazy-loading-a-namespace might be sort of along the lines of what you're looking for
Thanks @U013JFLRFS8 I am using exactly that. But this only does compilation. I need also a require function that is async 🙂
@UCSJVFV35 Here is require: https://github.com/babashka/sci/blob/master/doc/async.md#require
@U04V15CAJ Thank you so much!!
I guess what it means really, is that there is EITHER a async version, OR a sync version.
Or is it still possible to do sync evals, but unter the hood it is using async require?
So resolve will only depend on the state of the sci-context. So it means if i just call resolve,
So what I will need to do, if I resolve something, then there are situations where I might want to require the namespace of the resolve variable first.