Fork me on GitHub
#clojure
<
2017-10-08
>
dominicm12:10:13

https://clojuredocs.org/clojure.test/report I think the docstring for this is out, I can't find test_is.clj

dominicm12:10:06

I think it's referring to test.clj

jjttjj18:10:55

(I suppose this actually is "on topic" for the main clojure channel)

jstew18:10:00

@jjttjj seems kind of like redis with rdb, only closer to your app. I would check first if redis/rdb is a better fit. Wouldn't want to reinvent the wheel

jstew18:10:31

I've done the same thing with re-frame, periodically writing to local storage. The performance sucked though.

jjttjj18:10:26

cool, will check that out, thanks!

qqq21:10:30

is it worth considering "let me rewrite this code to cache this math sub expression inside this loop" or should I just think "let the JIT take care of it"

noisesmith21:10:15

I'd keep things simple first, then if it's not fast enough measure and find out where the bottle neck is - by that point if you need the optimization that means the JIT didn't take care of it, and your next step is either optimize yourself, or convert it to something the JIT can handle

qqq21:10:28

that is the correct answer

qqq21:10:54

unfortunately, being the lazy idiot I am, I still haven't setup a decent profiling setup

qqq21:10:10

I guess the XY problem is: how do I setup a decent statistical profiling environment

noisesmith21:10:22

have you tried yourkit?

qqq21:10:30

$400 / year?

qqq21:10:45

I still haven't jumped over the mental hurdle of "if it saves me 4 hrs, I should just pay for it"

danielcompton21:10:19

@qqq around January for the last two years Yourkit have had a sale for a personal license for ~$100

qqq21:10:38

at $100, I would absolutely pay for it

qqq21:10:04

weirdly enough, I'd probably also pay $100 for emacs, but not $400 for emacs, though the value I derive from emacs far exceeds that

qqq21:10:36

is there a clojure builtin which does input: [:a 😛 :c :d] [1 2 3 4} output: [[:a 1] [:b 2] [:c 3] [:d 4]] ?

noisesmith21:10:53

(partial map vector)

qqq21:10:18

right, I keep on forgetting map can be (map func col1 col2)