This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-31
Channels
- # announcements (1)
- # beginners (171)
- # cider (51)
- # clj-kondo (40)
- # cljsrn (5)
- # clojure (68)
- # clojure-dev (42)
- # clojure-europe (2)
- # clojure-italy (20)
- # clojure-spec (2)
- # clojure-uk (141)
- # clojurescript (19)
- # community-development (4)
- # core-async (17)
- # core-logic (3)
- # cursive (11)
- # data-science (1)
- # datomic (7)
- # defnpodcast (2)
- # figwheel (9)
- # figwheel-main (2)
- # fulcro (15)
- # graphql (21)
- # jackdaw (3)
- # joker (11)
- # juxt (1)
- # luminus (12)
- # off-topic (2)
- # pathom (73)
- # pedestal (2)
- # re-frame (41)
- # reagent (14)
- # reitit (4)
- # shadow-cljs (39)
- # tools-deps (4)
Hmm, offhand, I think it requires threads to be useful, and Joker's biz logic (versus underlying Go runtime) is single-threaded. So it wouldn't be of much use then...if I'm right?
An example use case; our tool gets information from a server, sending about 20 requests one at a time. There's no reason why we couldn't have a separate thread for each request so they could be in parallel.
So I may be looking for some specific use cases, but not something general purpose as in Clojure for JVM.
Joker is currently single threaded. Supporting concurrency and/or parallelism in any form is a pretty big effort. It's also an interesting technical problem, so I might tackle it at some point soon. Any ideas on the implementation are welcome 🙂
I made a small interpreter for Clojure which works with GraalVM. It calls directly into Clojure and pmap works over there:
$ bb '(pmap #(-> (csh "curl" "(link: ) ") :out (subs 0 10)) (range 5))'
("<!DOCTYPE " "<!DOCTYPE " "<!DOCTYPE " "<!DOCTYPE " "<!DOCTYPE ")
so maybe, if you want, you can call this tool as a shell command from joker. It spits out EDN by default, so you can parse that back in
Hmm, offhand, I think it requires threads to be useful, and Joker's biz logic (versus underlying Go runtime) is single-threaded. So it wouldn't be of much use then...if I'm right?