This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-26
Channels
- # aleph (5)
- # announcements (9)
- # beginners (115)
- # boot (36)
- # calva (13)
- # cider (4)
- # clara (7)
- # cljs-dev (27)
- # cljsrn (20)
- # clojure (182)
- # clojure-conj (3)
- # clojure-dev (4)
- # clojure-europe (3)
- # clojure-italy (2)
- # clojure-nl (4)
- # clojure-uk (34)
- # clojurebridge (3)
- # clojurescript (19)
- # clojureverse-ops (3)
- # core-typed (1)
- # cursive (12)
- # data-science (3)
- # datomic (16)
- # emacs (9)
- # events (5)
- # figwheel-main (11)
- # fulcro (14)
- # graphql (7)
- # jobs (10)
- # jobs-discuss (6)
- # lein-figwheel (8)
- # leiningen (2)
- # lumo (22)
- # mount (1)
- # nrepl (7)
- # off-topic (69)
- # overtone (17)
- # pathom (3)
- # quil (1)
- # re-frame (5)
- # reagent (23)
- # reitit (6)
- # remote-jobs (1)
- # rewrite-clj (4)
- # ring (38)
- # shadow-cljs (54)
- # sql (9)
- # uncomplicate (5)
- # xtdb (1)
looking to make friends
dont have any
want to make mobile game, simple incremental model
Case is supposed to be the fastest because it works on literals, but I think for more general approach, records which natively extend protocols will be the fastest choice.
this doesn't work but when i write threedays.core.add_cards(5)
on browser console it works
(defn ^:export add-cards [amount] (for [x (range amount)] (add-card (+ x (count @state/cards)))))
@m373h4n for
produces a lazy seq that the browser will not force. if you use something like cljs-devtools
that will eval the full lazy seq when you "log" it to the console. You probably want to switch the for
with doseq
@orestis I tend to shy away from records because they don't play with spec very well, but good to know, thank you
Oh, this is Clojurescript - never mind my record advice in any case, I’ve no idea if this maps well to ClojureScript or not.

@dnolen thanks a lot for your tips about memory leak. In the end, it was a plug in from Firefox from my company and not my app that was leaking...