This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-20
Channels
- # adventofcode (47)
- # announcements (3)
- # aws (29)
- # bangalore-clj (3)
- # beginners (63)
- # boot (2)
- # braveandtrue (40)
- # calva (34)
- # cider (37)
- # cljs-dev (8)
- # clojars (3)
- # clojure (45)
- # clojure-europe (2)
- # clojure-france (4)
- # clojure-india (2)
- # clojure-italy (44)
- # clojure-japan (4)
- # clojure-nl (39)
- # clojure-serbia (1)
- # clojure-spec (21)
- # clojure-uk (75)
- # clojurescript (28)
- # cursive (24)
- # data-science (3)
- # datomic (31)
- # emacs (13)
- # fulcro (35)
- # hoplon (21)
- # jobs-discuss (66)
- # nrepl (18)
- # off-topic (72)
- # pathom (35)
- # re-frame (20)
- # reagent (54)
- # shadow-cljs (35)
- # spacemacs (9)
- # specter (8)
- # sql (13)
- # testing (9)
- # tools-deps (21)
- # vim (3)
If I would like to make an npm library via clojurescript (built into a single index.js let's say), what would be the best way to do it? The guide on clojurescript using deps.edn and no lein doesn't make it clear how to integrate emacs cider via piggyback and the cljsbuild lein template fails for me, it says it can't find files. Figwheel template seems more front end oriented
https://github.com/thheller/shadow-cljs with https://shadow-cljs.github.io/docs/UsersGuide.html#target-node-library turned out to be the answer
What's the best way, without heavy lib dependence, to have clojurescript (nodejs) halt until an atom is set? Is there a Thread/sleep equivalent? I'd hate to run in a loop with no pause until I find it was set
I have an async call to load a protocol buffer schema using protobufjs (https://github.com/ahungry/functional-riemann-client/blob/master/src/main/fnrc/core.cljs#L17) and I don't want to leave a timing issue in there hoping a user loads it before I try to reference it
@m131 you can't block in JS in any way as there is only one thread. nothing else will be happening while you block so it would never unblock. need to go async for pretty much everything in node
I want to use something to do sprintf/format like functionality. I’ve seen reports that goog.string/format has DCE issues, but I’m not sure if that’s resolved and what’s the current best way to deal with this.
@cfleming: is there a clojure / IntelliJ Open API function I can call that does the same as "close all OTHER buffers' ?
@fbielejec yes, though you shouldn't act on them at compile (macro) time in a library unless you want to break global caching
actually now I found [this](https://clojurescript.org/news/2018-03-28-shared-aot-cache), which says:
The AOT cache logic cannot handle the case where shipping JARs employ macros that consult the ambient environment in order to affect the code generated for the source shipped in those JARs.
and then:
it is recommended that libraries and tooling employ goog.define instead, perhaps with the help of :closure-defines, as this makes JARs cache-friendly.
I think he wanted to say if app A use module X and you use in app B module X with different closure-defines for macro in module X, compiler will use cached A code with different closure-define for this macro, than you want in app B.
Minimal repro of what @lilactown posted yesterday
k, please open a JIRA ticket with this info if you have a chance https://dev.clojure.org/jira/browse/CLJS, and the contents can just be what you posted above and note that this specific to multimethods in the title