This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-04
Channels
- # adventofcode (171)
- # beginners (160)
- # boot (13)
- # chestnut (2)
- # cider (6)
- # cljs-dev (15)
- # cljsjs (35)
- # cljsrn (1)
- # clojure (139)
- # clojure-argentina (3)
- # clojure-brasil (1)
- # clojure-greece (31)
- # clojure-italy (5)
- # clojure-russia (5)
- # clojure-spec (18)
- # clojure-uk (11)
- # clojurescript (42)
- # clojurex (6)
- # core-async (12)
- # cursive (14)
- # dirac (13)
- # emacs (13)
- # events (1)
- # fulcro (46)
- # graphql (7)
- # leiningen (10)
- # lumo (3)
- # mount (31)
- # off-topic (20)
- # onyx (30)
- # perun (4)
- # planck (47)
- # re-frame (28)
- # reagent (14)
- # ring (5)
- # shadow-cljs (3)
- # spacemacs (7)
- # specter (13)
- # timbre (3)
- # unrepl (65)
- # yada (8)
welcome @nblumoe đ
always!
So, I managed to communicate with a socket repl started with clj -J-Dclojure.server.repl="{:port 5555 :accept clojure.core.server/repl}"
. How do I get unrepl on that repl? Do I need to pass it via :accept
? I was going to use the reference implementation from https://github.com/Unrepl/unrepl
the reference implementation has a start-aux
function which seems to be the entry pointâŚ
I guess I could call that from the socket repl to get it going. But I am not so sure that I am doing the right thing hereâŚ.
@nblumoe do you want to use an existing client, or write your own?
I'm trying right now
how do I install clj?
I'm asking the newb questions here @nblumoe
ah I tried "brew install clj"
clj -J-Dclojure.server.repl="{:port 5555 :accept clojure.core.server/repl}"
Exception in thread "main" java.io.FileNotFoundException: -J-Dclojure.server.repl={:port 5555 :accept clojure.core.server/repl} (No such file or directory)
I already had a script called clojure
lein unrepl-make-blob
rlwrap cat resources/unrepl/blob.clj - | nc localhost 5555
gives you a nice prompt
unrepl is usualy loaded by "upgrading" an existing basic repl (clojure.core.server)
the advantage being no configuration on the serve side, other than opening the port
and when unrepl doesnât do what you want, you fork , patch it and use the resulting blob
@cgrand maybe these two lines would make a nice addition to the unrepl readme?
right that's the lein unrepl-make-blob
I mentioned
hello all, does the scripts/loop
is working for everyone ? e.g : rerun lumo after it has been killed
Sure, we would like to use it for Clojure code evaluation on https://nextjournal.com/
done
Quite nice (except the blue ;)) !
iterm2 supports hover???
pretty sweet
and I have seen in the propieraty escapes codes a thing about hints displayed on hover (and also sending a system notification)
I mean we need to tread carefully here because we don't want to venture too far into detecting terminal types etc.
but this looks potentially super useful
ah, java.io.File is (incorrectly) detected as a URL
got it now
is that packed applying the colors?
you just interpret the [:span ...]
data structures in a colored way?
decoupling: packed only cares about the length of the spans (it doesnât even know how to retroeve their content), so it computes a layout and then an application specific renderer do the actual rendering using extra fields or methods on spans
(defn ansi [text ansi-text]
{:length (count text)
:text ansi-text
:start-length (count text)
:start-text ansi-text
:br-after? true})
creates a span, length, start-length and br-after are for packed; text and start-text are for the renderer
So the telling code sample is this cond
clause:
(keyword? x) (let [s (str x)] [(ansi s (str â\33[36mâ s â\33[mâ))]) ; cyan
@pesterhazy I havens created a PR for packed but itâs good to go.
@pesterhazy I guess I found the ^J
eater: https://github.com/nodejs/node/blob/master/lib/internal/readline.js#L401-L404