This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-27
Channels
- # architecture (6)
- # beginners (36)
- # boot (4)
- # cider (74)
- # cljsrn (5)
- # clojure (87)
- # clojure-denver (2)
- # clojure-finland (2)
- # clojure-gamedev (5)
- # clojure-italy (10)
- # clojure-nl (1)
- # clojure-uk (45)
- # clojurescript (33)
- # code-reviews (5)
- # core-async (12)
- # cursive (17)
- # datascript (2)
- # datomic (71)
- # duct (4)
- # emacs (19)
- # figwheel (1)
- # fulcro (4)
- # garden (1)
- # hoplon (18)
- # jobs (5)
- # leiningen (2)
- # off-topic (73)
- # onyx (14)
- # overtone (2)
- # portkey (32)
- # re-frame (62)
- # reagent (46)
- # shadow-cljs (76)
- # spacemacs (2)
- # sql (14)
- # tools-deps (5)
- # yada (3)
firebase is super groovy. matchbox is cool, still wrapping my head around it. anybody play with it much?
How do I extend a protocol to an arbitrary map like thing in clojurescript? In clojure I can do (extend-protocol Foo java.util.Map (foo [o] :foo))
Am I right that this isn’t possible because javascript doesn’t have interfaces or abstract classes?
Does anybody know what the uuid
function does when passed a UUID?
(def u #uuid "d70cbe71-c811-441a-988f-0348bdef14f9")
=> #'cljs.user/u
u
=> #uuid "d70cbe71-c811-441a-988f-0348bdef14f9"
(uuid u)
=> #uuid "d70cbe71-c811-441a-988f-0348bdef14f9"
(= u (uuid u))
=> false
(type u)
=> cljs.core/UUID
(type (uuid u))
=> cljs.core/UUID
somehow it changes an input UUID into another UUID which has the same serialisation but is not equal@conan on lumo 1.8/cljs 1.9.946 (uuid u)
throws Assert failed: (string? s)
and (= u (uuid (str u))) ;; => true
that makes sense because the source is:
(defn uuid [s]
(assert (string? s))
(UUID. (.toLowerCase s) nil))
is there a way to get a global fn?
as in, outside any namespace, in cljs
I am trying to replace some jquery code with google closure code:
(.on (js/$ js/document) eventType (fn [e]...)
by (events/listen js/document (get keyword->event-type event-type (fn [e]...)
My problem is, the handler function is now executed on the pageload instead when pressing a key. Is there some caveat when replacing .on by events/listen?
i don't think it's a drop in replacement
i dunno
i stopped trying to replace jquery events
if you figure it out let me know
i suspect they aren't supposed to be DOM events, but a general event system
but last time i checked there was basically no docs on it
so i've got some third party code that calls global functions
like onFoo()
kind of
how do i do (defn onFoo ...)
so that it shows up globally rather than in the current namespace?
this is in cljs
@thedavidmeister I suppose you could do something like (set! js/onFoo (fn [x] (inc x)))
@thedavidmeister @mfikes if you want something that also works with :advanced
you should use (defn on-foo [] ...) (js/goog.exportSymbol "onFoo" on-foo)
hello, does anyone know a good cljs wrapper for parallel.js? if not, can someone point to a nice guide on how to make a “good” cljs wrapper?
The irony that something which is explicitly not a number by its very name, is in fact actually a number.
what do people do for running cljs.test tests and collecting output in junit (for jenkins)?
The irony that something which is explicitly not a number by its very name, is in fact actually a number.