Fork me on GitHub
#clojure-uk
<
2019-09-26
>
dharrigan07:09:25

Good Morning!

dharrigan07:09:09

Today I will be mostly working with Prometheus, Grafana and Docker...

dharrigan07:09:11

It's a brave new world, don't you know? Programmers also have to do infrastucture stuff, I think they call it devops...

practicalli-johnny08:09:26

Anyone / any company interested in organising or hosting the next ClojureBridge London (doesn’t have to be in London). November would be a great time, but would need to start organising in the next few weeks. Details on how to organise: https://clojurebridgelondon.github.io/organise-clojurebridge-london/ Or just ask me questions

dominicm12:09:38

@dharrigan once upon a time that term meant dev and ops working together. Not that you'd fired your ops team and left your developers to do everything :)

dharrigan12:09:09

anyone know if it's possible to inject middleware into rebel-readline, like nrepl?

dominicm12:09:56

I don't think so. You have to wrap it. What are you trying to achieve?

dharrigan12:09:33

Sending code/evaluated forms to rebl

dominicm12:09:49

Nope, you'd need to use the rebel api.

dominicm12:09:11

You might be able to setup a custom eval to do that.

dharrigan12:09:24

I have it working in my repl

dominicm12:09:38

What's your repl?

dharrigan12:09:47

borrowing heavily from @rickmoynihan (thanks rick!)

dharrigan12:09:48

(send-to-rebl! {:code "(+ 1 2)"} {:value "bar"})

dharrigan12:09:01

My repl is an io-prepl

dharrigan12:09:07

sending the forms to rebl is easy enough, I just need to figure out how to do that. In rick's example, he uses nrebl and wraps that

dominicm12:09:21

Not built in then, you have to use an api? You could probably make a custom prepl

dharrigan12:09:38

Yes, and now I'm going to jump to conjure to ask something 🙂

dominicm12:09:01

You can override eval in most repls, this will be your friend

rickmoynihan12:09:19

happy to have helped @dharrigan Currious what your setup is; what editor / workflow have you got? etc…

rickmoynihan12:09:45

ahh rebel-readline — so you’re hacking/wrapping that?

dharrigan12:09:56

Using vim with the excellent conjure plugin and an prepl

dharrigan12:09:30

Actually I would be more happy to hook into the conjure plugin for vim and get it so that the line/eval is sent also to somewhere of my choosing (which would be rebl)

dharrigan12:09:19

I was looking at rebel-readline, and it looks okay, but a lot of scaffolding 🙂, I have to provide a service, which is okay I suppose, but was looking to see if there was any other way

dharrigan12:09:56

the service would be near 100% copypasta of the local service it uses, but with a few lines to do what you do in your middleware, sending the code + result to rebl.