Fork me on GitHub
#nrepl
<
2020-05-15
>
bozhidar06:05:21

So, if I understand correctly you want to be able to echo some request params in the responses, right? I assume your client will processing those specially if they are present?

bozhidar06:05:24

There’s nothing like this today, but I guess it’d be easy to add a middleware that just attaches certain request params to the responses.

flowthing08:05:02

@bozhidar Yes, exactly. Turns out it was pretty straightforward to build what I needed by just using op IDs to match requests and responses, and I can use that functionality for other things as well.

borkdude13:05:39

Is there an overview of bencode libraries for various languages that support streaming to build nREPL functionality?

borkdude13:05:57

I found one for python and for Rust. Obviously we have one for Clojure

borkdude13:05:38

I guess this page serves as such a resource: https://nrepl.org/nrepl/beyond_clojure.html

borkdude13:05:37

ah, btw @bozhidar - the nREPL server in babashka has now been broken out into a library: https://github.com/babashka/babashka.nrepl so the reference on that page could be changed to that

👍 4
dominicm17:05:24

I think clojure-vim maintains it now, but was written by Chas/Stu, I can't remember now.

dominicm18:05:02

the bencode library

borkdude18:05:46

it's nice how in almost any language the bencode impl ends up being around 200 lines

dominicm18:05:13

fireplace has a really short one

borkdude18:05:46

so probably clojure-vim/nrepl-python-client should also be listed there?

dominicm18:05:54

yeah, it should

borkdude18:05:13

and the fireplace one

borkdude18:05:34

the page lists server implementations, but I think it's also useful to list client impls