Fork me on GitHub
#clojure
<
2016-10-16
>
hamled04:10:08

Hi, I'm trying to create a list size goal with core.logic. I'm not sure this is actually possible with CLP, but I thought I would try. However, my current attempt never halts when I run it. My code here https://gist.github.com/Hamled/b74746e45d99c4fd2dc76ee9a2b8eec8 Any suggestions on how to implement it correctly would be appreciated.

sofra10:10:46

How do dynamic vars like print-length work? They can be set with set! and the definition seems to just be (def ^:dynamic *print-length* nil). When I make my own like that and try to use set! I can only do it from within a (binding ...) scope.

triss10:10:02

hi all. what's your favourite way of mapping over the values in a map? I've seen map-vals type functions all over the place. What's your favourite dependcy for this stuff?

yonatanel11:10:08

@triss This is an overkill but look at specter if you need more than just map-values: https://github.com/nathanmarz/specter

triss11:10:20

@yonatanel ah spectre looks very cool... might spend sometime learning that at some point.

borkdude11:10:43

@sofra great question. I expect the answer is: the REPL already runs within a binding context

sofra11:10:08

@borkdude that would make sense!

zilti11:10:05

@maximgb Did you try ClojureFX yet? It could help. https://bitbucket.org/zilti/clojurefx

sofra11:10:45

@borkdude interesting, thanks!

borkdude12:10:19

Can you see what JVM bytecode a piece of code generates?

gfredericks16:10:56

was it no-disassemble?