This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-27
Channels
- # admin-announcements (1)
- # aleph (3)
- # beginners (72)
- # boot (67)
- # braveandtrue (1)
- # cider (17)
- # cljs-dev (8)
- # cljsfiddle (2)
- # cljsjs (1)
- # cljsrn (2)
- # clojure (19)
- # clojure-greece (1)
- # clojure-russia (42)
- # clojurescript (15)
- # core-logic (10)
- # cursive (6)
- # datomic (2)
- # hoplon (349)
- # kosmos (3)
- # lein-figwheel (3)
- # om (52)
- # onyx (3)
- # overtone (1)
- # parinfer (11)
- # proton (11)
- # protorepl (3)
- # reagent (29)
- # ring-swagger (2)
- # spacemacs (1)
- # testing (3)
- # uncomplicate (1)
@richiardiandrea: how do you feel about moving the test tasks from boot.task.built-in to its own namespace?
sounds ok
I created boot.test
so one more namespace boot.self-test
with runtests
in it right?
so everything in boot.self-test
well, maybe, it can be used for testing arbitrary things, not just boot
but yes for me it's ok
oh that's the best compliment, and it is a compliment that I send right at you, because tasks are key for that 😄
i need to think how to partition middlewares now so that i can batch execution
probably I will need a higher order task, partition
, that does that
yes that would work too, I liked that I was returning comp
s of tasks 😄
so what you do in there could be (swap! runboot-queue conj (delay (boot.App/runBoot ...)))
Yeah that sounds like a good option
Yes I didn't want to touch runboot because it can be still used as it is for something else, that is why I added it to built-in
, but it is something that not many people would use I gueas
the only thing about runboot that gives me reservations is that the coordination part isn't really figured out in a general way yet
Yes I totally agree, for testing is good but for "real" stuff it maybe deceptive (for instance that warning is difficult to understand)
No agree 100%
No each call to runboot spawns and executes on a different thread
It is actually a hack for executing tasks in parallel IMHO :)
Prolly runboot should be stripped of the future, and parallelism handled by the caller (task)
Yes that"s a syncing point
(deftask complicated-build
[]
(comp (runboot :commands ["build-foo"])
(runboot :commands ["build-bar"])
(await-done)
(runboot :commands ["build-baz"])
(await-done)))
Yea you can, you need to just set the data and init it with initial-sync-map
That I have already made a bit better, accepting the number of tasks to wait for
All the primitives are in place for that
I can even move that to something like boot.parallel
Or better name
K will do
Ok you triggered a lot of very cool parallel thoughts and I think I will create boot.parallel
in another PR, for instance therebcan be a task called parallelize
which runs a task in a future
setting up the sync-map
data for you ;)
To close this one I need to batch the tests ones, I hope I will have time tomorrow