This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-25
Channels
- # arachne (1)
- # beginners (22)
- # boot (21)
- # cider (23)
- # cljs-dev (16)
- # cljsrn (9)
- # clojure (118)
- # clojure-dev (11)
- # clojure-greece (16)
- # clojure-italy (10)
- # clojure-losangeles (4)
- # clojure-russia (14)
- # clojure-serbia (4)
- # clojure-spec (58)
- # clojure-uk (33)
- # clojurescript (30)
- # cursive (17)
- # datomic (48)
- # docs (22)
- # events (1)
- # fulcro (24)
- # hoplon (3)
- # jobs (6)
- # jobs-discuss (4)
- # keechma (4)
- # leiningen (11)
- # luminus (4)
- # midje (1)
- # off-topic (107)
- # onyx (30)
- # other-languages (12)
- # pedestal (4)
- # re-frame (72)
- # reagent (6)
- # remote-jobs (1)
- # shadow-cljs (16)
- # spacemacs (3)
- # specter (9)
- # uncomplicate (4)
- # unrepl (40)
Morning. We seem to have blue skies again ☀️
morning!
Has anyone ever had memory leak issues with loop/recur?
I’ve got some long running loop/recur
s, and I’m wondering about rewriting them as while
s or something. I’m currently watching the memory usage climb and waiting for an OOM Error.
hmmm… can’t see it. (yet)
Hmmm… No sun over here in the West, but at least the snow and the melt-floods are all behind us now… 😉
I’ve managed to crash JVisualVM with an OOM Error now… 😞
@maleghast you will live in rainy and dramatic Scotland
Yeah, there is a level of natural grandeur that we are paying for with this bad weather, @otfrom 😉
CLojure question..... I have a map where one of the values is a keyword... and based on that keyword I want to call a certain function.... keyword and function name happen to be the same ( ie. :connect has to call (connect ...)
what is the best way to do this?
I had at first a cond
for each keyword... but then I thought why not turn the keyword in to a symbol and call that... but that doesn't quite work unfortunately.
this will return the function associated with the keyword:
(-> :keyword name symbol resolve)
how did you try and do it?thank you @sundarj that seems to do the trick... and it is a one liner... (and a map with 15 entries)
TIL case
does not work with functions as the expression/test-constants
Are functions not constant?
“They must be compile-time literals” according to docs
what do you mean by “a constant object” here?