This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-06-23
Channels
- # admin-announcements (11)
- # announcements (1)
- # beginners (80)
- # boot (152)
- # cider (22)
- # clojure (141)
- # clojure-berlin (57)
- # clojure-india (2)
- # clojure-italy (18)
- # clojure-japan (4)
- # clojure-russia (27)
- # clojurescript (96)
- # datomic (6)
- # dunaj (29)
- # editors (1)
- # euroclojure (63)
- # instaparse (2)
- # ldnclj (28)
- # off-topic (36)
- # onyx (4)
- # overtone (1)
- # reagent (8)
I blogged an EuroClojure anticipation post: http://dev.otto.de/2015/06/23/a-tale-of-two-lambdas-2/
@stammi: Who would have known that otto turns into such an interesting company, programming wise. I was watching one of your developers talk about scala during WJAX 2013, awesome talk
@sveri: if you ever happen to be in Hamburg and have an hour or two spare time you can visit us and have a look around
How do I run this code in lein
without exiting from the jvm?
(ns hello-world.async-test
(:gen-class))
(require '[clojure.core.async :as async :refer :all])
(require '[clojure.repl])
(defn -main [& args]
(doseq [i (range 10)]
(go (while true (let [random (rand-int 10)]
(println "Random ::" random))))
))
@mohan: you can block the main with something like (while true (Thread/sleep 100))
@joelgluth: Thanks! I kinda figured - it looks I can run lein trampoline run -m clojure.main and run the doseq
.
@joelkuiper: a fun trick is to call (.join Thread/currentThread) - single thread blocking on itself