Created
February 18, 2010 21:13
-
-
Save Licenser/308078 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns utils) | |
(declare *log*) | |
(defn log [msg] | |
(dosync (alter *log* cons msg))) | |
(ns backend | |
(:use utils)) | |
(defn some-fn [x] | |
(log x)) | |
(defn pmap-fn [list batch-size] | |
(doall (pmap (fn [batch] (doall (map #(some-fn %) batch))) (partition batch-size list)))) | |
(ns frontend | |
(:use utils) | |
(:require backend)) | |
(def run | |
(binding [*log* (ref '())] | |
(backend/run))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment