Fork me on GitHub
#cider
<
2017-04-09
>
dpsutton02:04:52

@jfntn I believe you're correct. The cljs repl is just a call back into the same jvm I think. I've been wanting to separate the two so that you can jack in clojure script separately and this is a good use case

richiardiandrea16:04:17

@pesterhazy great that you are working on auto completion, also have a look at compliment if you haven't already. It is the link which powers Cider's completion

pesterhazy16:04:33

@richiardiandrea thanks for the pointer, I'll check it out!

pesterhazy16:04:04

part of the challenge here for unrepl is to make completion work without compromising other goals

pesterhazy16:04:22

- speed: don't increase the startup time dramatically - dependencies: don't introduce gratuitous external dependencies

pesterhazy16:04:20

looks like compliment has no transitive deps, so that's great

richiardiandrea16:04:44

Yep and I like the fact that it is already battle tested

richiardiandrea16:04:31

And the maintainer is actually maintaining it, there was some talk on adding cljs at some point but I don't think it makes sense to do that in there anymore. Cljs completion is drastically different

pesterhazy16:04:10

have you tried unravel 0.2.0? Tab completion mostly works already, with a super simple approach

richiardiandrea16:04:09

I wanted to fix a bug I added in inf-clojure and then add the unrepl client in it

richiardiandrea16:04:49

Sending tab chars is good enough of a solution for now 😀

pesterhazy16:04:27

for inf-clojure I would really suggest using the unrepl payload directly instead of using unravel as a middleman

richiardiandrea16:04:15

Yep but that means that I have to replicate what you did in emacs list, seems a bit more work 😀😀

pesterhazy16:04:25

or maybe that's out of scope for inf-clojure?

pesterhazy16:04:49

yeah it's a bit of work, especially if you want to keep track of 2 tcp connections etc.

richiardiandrea16:04:21

Inf-clojure is just talking with a input output console stream, so yeah it might be out of scope

pesterhazy16:04:45

bozhidar mentioned to me that there's no EDN parser for elisp yet

pesterhazy16:04:58

so that would need to be written as well

richiardiandrea16:04:19

There is a JSON parser though

pesterhazy16:04:28

really a "native" unrepl client for emacs would be the endgame though

pesterhazy16:04:58

it's ultimately what we're building unrepl for

richiardiandrea16:04:37

Yeah agree, I think it is going to happen, in the meantime inf-clojure -> unravel -> unrepl must be tried 😀

benedek16:04:52

there is an edn parser for elisp tho

benedek16:04:07

by expez let me get a link

benedek16:04:30

we use it in clj-refactor if you need examples

benedek16:04:32

unrepl and unravel are really exciting btw.

pesterhazy17:04:32

From edn.el: >>> Is it any good? Yes!

pesterhazy17:04:52

awesome! thanks @benedek

pesterhazy17:04:43

@richiardiandrea let me know if you run in any issues with running unravel in "dumb terminal" mode, I haven't tried that too much yet

benedek17:04:14

I am also interested in inf-clojure/unravel/unrepl experiences @richiardiandrea

richiardiandrea17:04:05

I think the integration to inf-clojure is super easy now that we have a repl type in inf-clojure

benedek17:04:43

will give it a try this evening