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)
@haywood depending on your needs, you could also use SCI to evaluate ClojureScript at runtime. It withstands advanced compilation.
compiler state is stored in my app db and is passed around to all the editor instances
I recommend looking at https://nextjournal.github.io/clojure-mode/. That demo also uses SCI
this website is also using SCI + clojure-mode: https://4clojure.oxal.org/
I have been running into perf problems with paren-soup… and this looks to be a huge improvement how did I miss this in my research 😭
This has been great and I’m almost done with the transition to SCI+clojure-mode, thank you so much for the library.
dumb question and apologies for asking directly, but is there an easy way to evaluate strings in a specific namespace without prepending “in-ns” before the code I want to evaluate? I see some dynamic vars in the vars
namespace but not sure I’m using it correctly.
@haywood https://github.com/babashka/xterm-sci/blob/90393bdbcb6e27a0f12dff15d8ae98380dd67f20/src/xterm_sci/core.cljs#L56
might not be 100% the right channel, but I feel like the people lurking here is the right audience at least. I'm trying to consume a CLJS library from a JS project. I managed to get it to work mostly, but the library is using keywords for some arguments, and I'm lost trying to create CLJS keywords from JS-land. Anyone have any ideas?
great, just found my answer: https://shadow-cljs.github.io/docs/UsersGuide.html#_access_cljs_from_js
dumb question, how can I specify a deps alias in a specific build? trying a bunch of options based on what’s in the docs
@haywood shadow doesn't care about bringing in too many sources, like tests, so you can also just use all relevant aliases on the top level
yea I’d like to keep the namespaces separate from another build, and I know I can pass -A:aliases
when I build from the command line, but I’m compiling from the repl and not sure how to pass the aliases option