Re: ANN: Parallel let macro!

2017-11-30 Thread Leif
Interesting seeing the different solutions to this problem. Seems like a good place to remind people about the plumatic/plumbing Graph library: (require '[plumbing.core :refer (fnk)])(require '[plumbing.graph :as graph]) (def g { :a (fnk [] (:a (remote-req {:a 1 :x 2}))) :b (fnk []

Re: ANN: Parallel let macro!

2017-11-29 Thread Ambrose Bonnaire-Sergeant
Cool! Check out code-walking libraries like riddley or tools.analyzer.jvm to properly support special forms and variable shadowing. I had a quick crack myself but gave up when I remembered how hard this

Re: ANN: Parallel let macro!

2017-11-28 Thread Henrik Eneroth
Very nice! Kudos. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group,

ANN: Parallel let macro!

2017-11-28 Thread Eunmin Kim
Hi, folks This is small piece of code that is inspired by haxl, muse(https://github.com/kachayev/muse), urania(https://github.com/funcool/urania). Not a library. (defn remote-req [result] (Thread/sleep 1000) result) (defmacro plet [bindings & body] (let [bents (partition 2 (destructure