This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-03
Channels
- # admin-announcements (91)
- # announcements (1)
- # beginners (5)
- # boot (228)
- # cljs-dev (9)
- # cljsrn (12)
- # clojars (13)
- # clojure (175)
- # clojure-art (6)
- # clojure-russia (46)
- # clojurescript (35)
- # core-matrix (62)
- # cursive (10)
- # datomic (5)
- # hoplon (119)
- # ldnclj (11)
- # leiningen (7)
- # mount (3)
- # om (21)
- # reagent (2)
- # slack-help (1)
- # spacemacs (1)
@christopherbui: You could use piggieback.
Too late for that
Ship sailed
@gdulus: check for a circular dep. If you use lein cljsbuild once
you might get a stack overflow. I just got a similar error.
Trying to set up garden, for writing css, but lein garden once
and lein garden auto
are dropping without doing anything
Why, in CLJS, are the functions in defprotocol prepended with a dash? https://crossclj.info/ns/org.clojure/clojurescript/1.7.189/cljs.core.cljs.html#_ISeq
@decoursin: You should understand defprotocol first.
-first
is probably not to be used directly. Dash was probably prepended to make it explicit that it shouldn't be used directly.
sync.matrix=> (do (in-ns 'fp.flow) (def frog 8))
WARNING: Use of undeclared Var sync.matrix/in-ns at line 1 <cljs repl>
Hi, not sure if’s an issue but (map hash [0.9 0.7])
, clojure returns (-216006655 1501560832)
, while clojurescript returns [0 0]
.
This expression always return true (that how I found it):
(= (hash {:a (rand) :b (rand)})
(hash {:a (rand) :b (rand)}))
In CLJS code it looks like this https://github.com/clojure/clojurescript/blob/734e503793791159863c761f3496c34e47a0a928/src/main/cljs/cljs/core.cljs#L880
(number? o)
(js-mod (Math/floor o) 2147483647)
Javascript is not known for treating hash as a first class citizen. But, java's Object has a hash method. JVM ecosystem has incentives to implement hash well.
Well, indeed but it works just fine for numbers (cause hash is equal to that). The problem is Math.floor call which loose the data. Even (hash (toString o))
would fix this issue, although it’s slow and not a complete solution
Actually https://github.com/clojure/clojurescript/commit/61455e64f58a07706c9b5ecebc9247bf085f7df1 this is a commit when it was introduced
https://github.com/magomimmo/modern-cljs has been fully ported to the latest 2.5.5
stable release of boot
build tool
@artemyarulin: right, the question is how to detect floating point efficiently. Conversion to strings is out of the question.
@artemyarulin: this conversation is better for #C07UQ678E
@selfsame there’s no good way to do that since there aren’t ns
objects in ClojureScript
I swear I saw somewhere a guide for packaging a clojure (JVM) backend as part of an electron clojurescript app, but I can't find it anywhere now. Anyone know of something like that?
@juhoteperi literallycanvas is a cool drawing app with react as its only dependency. Would it need an externs file? https://github.com/literallycanvas/literallycanvas