Fork me on GitHub
#off-topic
<
2017-01-25
>
val_waeselynck09:01:00

@ggaillard don't underestimate how much more productive and relieved you can get after a short holiday.

konukhov17:01:51

@theblackbox It’s implemented here https://github.com/ymilky/franzy/blob/master/src/franzy/clients/consumer/client.clj#L208. Actually, I remember getting a somewhat similar protocol exception when I was testing Franzy. I didn’t figure out what was causing it and ended up implementing a simple Kafka-client wrapper myself.

qqq17:01:51

@richiardiandrea : I'm actually not even using inf-clojure. I'm literally using clojure-mode + inferior-lisp. 🙂

qqq17:01:14

but because everything is programamble, I'm about to do something very cool. My use of eamcs has 2 monitors + 4 frames, 2 frames per screen.

qqq17:01:24

I'm about to implement a key, which fires up "boot-dev" in frame3, aand "boot-repl" in frame 1

qqq17:01:29

while I edit my code in frame2 and view docs in frame4

qqq17:01:44

This is the type of thing that's trivial to do when building from scratch, but I have no idea where to begin with cider.

dotemacs18:01:55

@tbaldridge haha true… sorry for the late reply 🙂

dotemacs18:01:25

@qqq this sounds like a very cool setup. Is it public by any chance?

qqq18:01:55

@dotemacs: it's not private, it's just part of a 650 line org file (which generates my emacs.el) that's a bit embrassing to share

qqq18:01:09

it's literalrly just 4 frames, named f0 f1 f2 f3; and I just send buffers to those frames

dotemacs18:01:36

@qqq oh don’t worry about that, I always have grand plans on how to organise my initi.el and then when I’m at some 80% I give up and go into a complete mess, at which point I just give up and reduce it to the smallest subset of the required features… until I start to add more packages/tweaks … the cycle repeats

qqq18:01:20

yeah, the one thing that bugs me about emacs is the way new buffers / windows / frames are created / handled

qqq18:01:31

I wish there was a 'hook' function where whenever emacs wants a new buffer/window/frame, it consults me

qqq18:01:44

then my hook function gets to decide where the new thing, if created at all, is placed, or if it re-uses an oldone

qqq18:01:16

i'm testing out this "multi frame" appraoch since having one full screen frame + lots of widows doesn't work out as eamcs move my windows around for me at will and replaces them at will

dotemacs18:01:58

and also look at set-window-dedicated-p

theblackbox18:01:29

cheers @konukhov still in the very early stages of Clojure dev so I was working my way through the example by refactoring to try to make sense of the components. During the refactor I think I missed some parens so the "object" I was passing to said function was actually a reference to the function that creates my consumer and not the Kafka Consumer that was expected. So I'm guessing that the protocol method was implemented but not for the data structures I was passing it, hence the error. Still learning but it's starting to make sense.