joker

Discuss all things joker, the Clojure interpreter/linter on top of Go. https://github.com/candid82/joker
neeasade 2019-12-30T15:27:25.011200Z

hello -- can I use joker to create/listen on a file socket -- just browsing the docs currently

neeasade 2019-12-30T15:27:57.012Z

(if candid if watching, thanks for joker! am scratching the 'clojure for scripting' itch here too!)

👍 2
👀 1
jcburley 2019-12-30T15:38:33.012100Z

Joker supports a socket Repl (e.g. joker --repl :5555), but not file sockets directly.

jcburley 2019-12-30T15:38:50.012300Z

Have you looked into doing something like this (exploiting Joker support for reading from stdin)? https://stackoverflow.com/questions/26390126/is-it-possible-to-attach-unix-socket-as-stdin-to-process-in-bash

neeasade 2019-12-30T15:47:41.012700Z

that works fine, thanks

neeasade 2019-12-30T15:50:37.012900Z

well wait -- @james-clojure how can I create the socket and send things to it first with socat?

neeasade 2019-12-30T15:51:05.013100Z

(the link is just for listening, right?)

neeasade 2019-12-30T15:52:22.013300Z

think I'll just look here little more - https://github.com/craSH/socat/blob/master/EXAMPLES#L175

jcburley 2019-12-30T15:52:24.013600Z

I think it is just for listening. You might want another socket for stdout/stderr. I'm not an expert on this stuff ordinarily (ditto how to create the socket in the first place), so I generally have to re-read man pages and such to come up to speed. E.g. I vaguely recall something like mkpipe being involved, but that might be a different animal entirely.

neeasade 2019-12-30T15:53:26.013800Z

gotcha gotcha --- well thanks for the idea anyway -- previously I had done this with mkfifo and then just read lines from that -- might be the way I go again rather than socket

jcburley 2019-12-30T15:53:54.014Z

Ah, mkfifo sounds good; hope you can get that to work!