This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-12
Channels
- # announcements (10)
- # babashka (26)
- # beginners (113)
- # calva (75)
- # cider (7)
- # clj-http (1)
- # cljdoc (2)
- # cljfx (3)
- # cljs-dev (13)
- # clojure (79)
- # clojure-europe (21)
- # clojure-losangeles (2)
- # clojure-nl (4)
- # clojure-sweden (1)
- # clojure-uk (23)
- # clojureladies (4)
- # clojurescript (26)
- # clojureverse-ops (2)
- # conjure (2)
- # cursive (2)
- # data-science (1)
- # datalog (6)
- # datomic (1)
- # degree9 (2)
- # depstar (4)
- # esprit (3)
- # fulcro (25)
- # introduce-yourself (2)
- # jobs (3)
- # lsp (30)
- # meander (38)
- # missionary (9)
- # nbb (7)
- # news-and-articles (2)
- # off-topic (28)
- # pathom (46)
- # polylith (19)
- # re-frame (4)
- # reitit (2)
- # sci (8)
- # shadow-cljs (23)
- # specter (17)
- # spire (1)
- # tools-deps (16)
- # unrepl (1)
- # xtdb (30)
I managed to get SCI to work in a JS-context (I basically compile SCI to a node-library via shadow-cljs that can then be used from node/browser apps), but I'm not getting any of the options to work when passed to sci/init. I'm assuming it's because I'm not creating symbols/keywords correctly, but SCI is not giving me a lot of output to work with, so unsure on how to proceed. Here is one iteration of what I've been doing: https://gist.github.com/victorb/62d7a1b7d41ce8cc2ad8fa4ac6c9f5e1
I've also tried using symbol
to create a symbol to str
instead for example, but I'm never getting it to actually deny the function call.
In the early stages SCI had a JS API and a Java API but I deprecated this exactly because it was awkward to make CLJ options from these languages
you could expose a couple of helper functions if you want your JS env to do specific things
yeah, I could do that I guess, but would add additional build steps in the JS-land process/project, which I wanted to avoid but if there is no other options, yeah
well, constructing CLJ values from JS should work in theory, but in practice it's a bit tedious
Here is the JS API, it's not been maintained for a while: https://github.com/borkdude/sci/blob/master/src/sci/impl/js.cljs