This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-06
Channels
- # beginners (90)
- # boot (83)
- # cider (39)
- # clara (4)
- # cljs-dev (124)
- # cljsrn (10)
- # clojure (208)
- # clojure-boston (1)
- # clojure-italy (13)
- # clojure-nlp (3)
- # clojure-russia (34)
- # clojure-spec (63)
- # clojure-uk (101)
- # clojurescript (65)
- # community-development (13)
- # copenhagen-clojurians (1)
- # core-async (1)
- # cursive (24)
- # datascript (1)
- # datomic (65)
- # emacs (20)
- # graphql (20)
- # hoplon (21)
- # instaparse (18)
- # jobs (5)
- # jobs-discuss (2)
- # leiningen (8)
- # luminus (32)
- # midje (1)
- # mount (3)
- # off-topic (18)
- # om (10)
- # parinfer (6)
- # pedestal (2)
- # planck (2)
- # precept (22)
- # protorepl (7)
- # re-frame (45)
- # reagent (9)
- # ring (1)
- # ring-swagger (4)
- # rum (2)
- # spacemacs (5)
- # sql (2)
- # unrepl (13)
- # untangled (8)
- # yada (5)
---- Could not Analyze src/shyster/core.cljs line:17 column:3 ----
clojure.lang.Keyword cannot be cast to clojure.lang.IObj
16 (defn log-from-channel [ch]
17 (go (log (<! ch))))
^--- clojure.lang.Keyword cannot be cast to clojure.lang.IObj
any ideas?
(:use-macros
[clojure.core.async :only (go <!)])
and [org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.542"]
[org.clojure/core.async "0.3.443"
:exclusions [org.clojure/tools.reader]]
@valyagolev wrong macros, you want cljs.core.async.macros
this worked! thanks
Hello all, how do I iterate with this (.querySelectorAll js/document ".mdc-ripple-surface:not([data-demo-no-js])")
array-seq
Should the closure-library work in NodeJS? Seems goog.net.DefaultXmlHttpFactory.createInstance
relies on XMLHttpRequest
being present, which it isn’t in Node
@grav those aren’t supposed to work no. most of it is safe to use but the browser specific stuff isn’t
Suppose I want to build a om.next
application without using IQuery
(by passing all props to children explicitly, etc., just like in om.core
: Can I use om/transact!
for mutations safely? Initial tests tell me I can, although I get scary warnings like Invariant Violation: transact! should be called on a component that implements IQuery or has a parent that implements IQuery
@the-kenny try #om as well, you might get a response there?
@danielcompton Yeah maybe
I’m using funcool/httpurr
. Wonder if a PR regarding nodejs compatibilty would make sense? What do the funcool peepz think?
Hi. Some time ago I have read about a ClojureScript REPL which runs in a browser and is shared between multiple users. Anyone knows which one this could be? Tank you!
So does anyone have any clues on how I'd generate a thumbnail of a webpage from a link?
@alice https://medium.com/@dschnr/using-headless-chrome-as-an-automated-screenshot-tool-4b07dffba79a
From cljs-testing docs:
> NOTE: You cannot have more than one async test per deftest
form or only the first one will run
Any ways to get around this apart from creating more deftest
s?
Yes. I wasn’t planning on adding deftest'
to Clojure, just wondering if a home-made macro would do the trick.
The thing is that my tests run both for clj and cljs, so I try avoiding having to rewrite them for the sake of cljs.
@grav it could work, just depends on how you’re writing them so that they could be shared reasonably
@dnolen Something like this?
(defmacro deftest' [name & body]
`(do ~@(->> (interleave (repeat `deftest)
(repeat (symbol (str name "_" (gensym))) )
body)
(partition 3))))
(macroexpand-1 '(deftest' my-test (is (= 2 2)) (is (not= 2 3))))
=> (do (clojure.test/deftest my-test_G__49180 (is (= 2 2))) (clojure.test/deftest my-test_G__49180 (is (not= 2 3))))
I know I can’t use resolve
in cljs in runtime due to :advanced
compilation. But is there a way to accomplish a similar thing it in a macro? In theory using it in a macro would address the munging problem since the macro is expanded before the cljs->js compilation step?
it’s not dynamic though
you can’t pass resolve
a variable
@vikeri https://github.com/clojure/clojurescript/commit/3438f205b6b692f64af5d3f15b34a0e223363fa4
what is the current status of cljs + https://github.com/mikera/core.matrix ?
Is there a convenient way to export a compiler environment from clojurescript and feed it into a bootstrap-cljs environment? That would lock me out of advanced optimizations on the cljs side -- would it be better to send selected namespaces as cljs text to the browser for compilation by bootstrap-cljs?
@richiardiandrea Can you guess the context of my question? 🙂
are you talking about sending the state remotely? I have always had this idea but never realized it...and yes...what you are doing is super cool 😄 😄 🆒
compiler state -- basically I've got a namespace (just one for now, but ...) that is currently compiled by clojurescript via boot that I'd like to have available in the replumb repl for autocomplete, redefining, etc.
@chouser we already emit analysis caches per ns so you can just use that, either EDN or Transit
@chouser FWIW: https://github.com/anmonteiro/lumo/blob/master/src/cljs/snapshot/lumo/common.cljs#L21
Just like David said, Lumo lazy-loads the analysis cache
as part of the (Boot) build process we partition those core caches into smaller things that we load as needed: https://github.com/anmonteiro/lumo/blob/master/build.boot#L102
in this case we call Node fs
functions, but you can easily modify it to do a network request or something
It's really amazing what you folks have done. I really don't understand what I'm doing, but nevertheless I've got clojurescript running beautifully in the browser, even with source maps.
is the figwheel kind of facility available to non clojurescript stacks for front end development ? How much of a big deal it is really to have figwheel for your ui development. I have not done any UI development, so, I dont know. But, I get the feeling that it is a "big deal" that folks who are looking to choose a stack should really need to sit and take notice ..