joker

Discuss all things joker, the Clojure interpreter/linter on top of Go. https://github.com/candid82/joker
hlship 2019-07-31T17:26:41.001900Z

Would adding pmap be going too far? It would require future.

borkdude 2019-08-14T07:37:09.013600Z

I made a small interpreter for Clojure which works with GraalVM. It calls directly into Clojure and pmap works over there:

$ bb '(pmap #(-&gt; (csh "curl" "(link: <https://www.clojure.org>) <http://clojure.org|clojure.org>") :out (subs 0 10)) (range 5))'
("&lt;!DOCTYPE " "&lt;!DOCTYPE " "&lt;!DOCTYPE " "&lt;!DOCTYPE " "&lt;!DOCTYPE ")

borkdude 2019-08-14T07:37:31.013800Z

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

borkdude 2019-08-14T07:38:44.014Z

^ @hlship

hlship 2019-07-31T19:30:48.002700Z

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.

hlship 2019-07-31T19:31:12.002900Z

So I may be looking for some specific use cases, but not something general purpose as in Clojure for JVM.

borkdude 2019-07-31T19:31:16.003100Z

can go channels be used from joker?

hlship 2019-07-31T19:31:37.003300Z

Not that I know of; but go channels could easily be part of an implementation.