Fork me on GitHub
#clojure
<
2017-10-14
>
qqq01:10:55

There's quite a few clojure tensorflow/deep-learning libs floating around lately. Anyone using any of them in production?

qqq07:10:22

is there a shorthand for (into [] (for .... )) ?

val_waeselynck07:10:18

Nope, I think I made my own forv for that

qqq07:10:42

can you share/paste it?

val_waeselynck08:10:20

(defmacro forv [& args] `(vec (for ~@args)))

qqq09:10:54

lol, I can't believe it's that simple; thanks!

bfabry14:10:29

vec takes a collection and returns a vector

bfabry15:10:01

(vec (for [a [1 2 3] b [4 5 6]] [a b]))
=> [[1 4] [1 5] [1 6] [2 4] [2 5] [2 6] [3 4] [3 5] [3 6]]

lovuikeng11:10:11

thank you @stuartsierra for going great lengths to revisit homoiconicity for us https://www.youtube.com/watch?v=o7zyGMcav3c

bpiel14:10:24

@qqq re: tensorflow : not that I know of

qqq21:10:34

@bpiel: whoa! you're here!! I was just watching your clojure conj talk

qqq21:10:58

@bpiel: one thing I don't get -- if you wrote a bunch of gradient code in clojure, why did you have to also write c++ stub code ?

bpiel21:10:21

@qqq Can't talk right now. But I'll get back to you

qqq21:10:20

@bpiel: I'm holding you to that after you recover from clojure conj

bpiel21:10:12

@qqq deal. ☺️ The current distraction is getting the kids to eat dinner