This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-17
Channels
- # admin-announcements (3)
- # announcements (1)
- # aws (3)
- # beginners (41)
- # boot (109)
- # braid-chat (2)
- # braveandtrue (5)
- # cider (11)
- # cljs-dev (38)
- # cljsjs (15)
- # cljsrn (5)
- # clojure (87)
- # clojure-berlin (16)
- # clojure-ireland (1)
- # clojure-japan (10)
- # clojure-madison (3)
- # clojure-nl (3)
- # clojure-poland (6)
- # clojure-russia (115)
- # clojure-sg (1)
- # clojurebridge (35)
- # clojured (8)
- # clojurescript (36)
- # core-async (24)
- # cursive (18)
- # datavis (1)
- # datomic (27)
- # dirac (22)
- # editors (1)
- # emacs (3)
- # events (19)
- # hoplon (149)
- # ldnclj (7)
- # lein-figwheel (1)
- # luminus (1)
- # off-topic (70)
- # om (196)
- # onyx (63)
- # parinfer (155)
- # proton (36)
- # re-frame (69)
- # reagent (2)
- # ring (2)
- # ring-swagger (1)
- # slack-help (4)
- # spacemacs (9)
- # testing (11)
@martinklepsch: thanks for pointing out. I will look at it
if I pass a cljs.core/PersistentArrayMap
value from a .cljs
file into a defmacro
in a .clj
file, how can I use that as a clojure.lang.PersistentArrayMap
in the macro code please ? e.g. it appears you cannot even call (type)
in .clj
macros on ClojureScript values, given (defmacro type-of [v] (type v))
, (type-of “”)
results in java.lang.IllegalArgumentException: No method in multimethod 'emit-constant' for dispatch value: class java.lang.Class
?
Hmmm anyone know if it'd be allowed to create a cljsjs package for AmCharts based on this license info? https://github.com/amcharts/amcharts3#license
@superstructor: why is it important for your macro to know which kind of map it is passed? since macro compilation happens in clojure it will always be the clojure kind
Does anyone have any thoughts on http://stackoverflow.com/questions/35460185/what-is-an-om-component ?
I'm trying to build the uberjar, but Could not find artifact com.google.javascript:closure-compiler:jar:v20160125 in central
…
https://github.com/clojure/clojurescript/commit/2b948b0f36f897dab9575e6a5f35c70e61ea8a7f
@george.w.singer: Might have more luck on the #C06DT2YSY channel.
@peeja: yeah you can’t currently build master due to that artifact not being released to Maven yet
they’re usually pretty good about doing them at the same time so I’m not sure what’s up
I don’t have a strong grasp of the mechanics of this … but lets say I have a function that I want to run pre-client-delivered-clojurescript … e.g. it needs to do a lookup in a 10MB file or something, but the actual outcome is small. Is this something a macro could do or a reader tagged literal?
e.g. (println (greeting :key))
… greeting might require a lookup in a large table / etc … but ideally the client would just see (println “hello”)
compiled
Hey all, can anyone point me in the right direction of how to attach a custom ring handler to my figwheel setup for a re-frame app? Details here-> https://github.com/bhauman/lein-figwheel/issues/344
@hueyp: a macro can look up the value at compile time as long as the lookup table is defined at compile time as well
@thheller sorry I’m a bit confused by ClojureScript macros, in a defmacro
unquoted code is resolved to Clojure symbols and evaluated as Clojure right ? I know that if I create a clojure.lang.PersistentArrayMap
in the Clojure macro and pass it from Clojure -> ClojureScript it is converted to a cljs.core/PersistentArrayMap
? So if I go the other way and pass a map from ClojureScript -> Clojure macro will it be of type clojure.lang.PersistentArrayMap
or cljs.core/PersistentArrayMap
?
@jr: and that table wouldn’t end up in the client in its entirety? and it could (potentially) be a java specific table? 😜 (thanks)
hi i'm working through awkay's om next tutorials and I'm stumped on this particular exercise . Am I setting the ident correctly and am I passing properties to it correctly? https://github.com/seanirby/om-tutorials/blob/awkay-tutorial/src/tutorial/om_tutorial/E_UI_Queries_and_State_Exercises.cljs#L11-L13
@seanirby: there's an #C06DT2YSY channel
Is there a snapshot of the closure library api that is currently available in clojurescript? Trying to figure out what's available and what isn't. Looking at the current closure docs I see all sorts of useful items, but not all of them are available (e.g.` goog.net.Jsonp`)
@peterschwarz: goog.net.Jsonp
is definitely available
(:import [
@anmonteiro: Ok, looks like I just mis-handled that tried to reference it directly via (goog.net.Jsonp. url "callback")
and was not seeing it available in the console (like I could XhrIO, which I pulled in via a :require
)