Fork me on GitHub
#announcements
<
2021-08-14
>
athos13:08:10

I'm happy to announce the first release of Trenchman https://github.com/athos/trenchman Trenchman is a standalone nREPL/prepl client written in Go and heavily inspired by https://github.com/technomancy/grenchman. It connects to a running nREPL/prepl server and starts up a REPL session instantly. Feedback is welcome!

3
🚀 9
👏 21
3
borkdude13:08:33

Btw, it's pretty easy to expose your binary as a babashka pod (this uses a very similar format as nREPL) so it can be used a a library from babashka. See https://github.com/babashka/pod-babashka-go-sqlite3 for an example in golang.

borkdude13:08:13

e.g.

(require '[pod.athos.trenchman :as t])
(t/eval "(+ 1 2 3)" {:port 1234})
or so

athos13:08:53

Hi, thanks for your comments!

athos13:08:56

> Are you also aware of https://github.com/eraserhd/rep? Yeah, I know of it. Some of Trenchman's use cases overlap with it, I think. > Btw, it's pretty easy to expose your binary as a babashka pod (this uses a very similar format as nREPL) so it can be used a a library from babashka I'm not familiar with babashka pod, so I'll look into it later. Thanks for the suggestion! 🙏

borkdude14:08:01

@U0508956F

bb nrepl-server & sleep 1 && trench -p 1667 && kill $!
This connects to a babashka nREPL server :)

borkdude14:08:26

Perhaps trench can support a timeout so it keeps trying until the port is open

borkdude14:08:47

Also some read-line-ish feature would be nice so up arrow works

athos15:08:02

I'm glad to see you playing with my tool 😄 Before the timeout, perhaps trench should support connection retry? > Also some read-line-ish feature would be nice so up arrow works Yes, readline is a must-have feature. I'd like to support it at some point if it's not too difficult to implement. For now, I'm using the command with rlwrap, like alias trench='rlwrap trench'.

borkdude15:08:03

yes, timeout + retry

borkdude15:08:26

you could look at how joker has implemented their REPL, I think they're using some golang library for dealing with the input

athos15:08:20

Ah, you're right

Cora (she/her)02:08:06

this'll be in the clojure morsels edition that ships monday 😄

athos03:08:03

@U8QBZBHGD Wow, thank you for picking this out! 😍

partywombat 3
wilkerlucio21:08:17

[com.wsscode.pathom3 "2021.08.14-alpha"] is out! This release includes improvements for dynamic resolvers, which is what will allow the maximal graph vision of Pathom to work! Changes: • Fix cache store specs • Add ::pcr/wrap-process-sequence-item plugin entry point • Add filtered-sequence-items-plugin new built-in plugin • Batch support for dynamic resolvers • Batch support on foreign requests • BREAKING CHANGE: Dynamic resolvers always get rich inputs with input data and foreign ast • Dynamic mutations also go as input parts with params https://clojars.org/com.wsscode/pathom3

🚀 46
❤️ 13