Search
Monday, 7th of June 2021, 16:47:13 UTC
17:04:21
jmercouris
beach: nice! That’s cool! Hopefully you won’t cringe too hard when you look at our code :-D
17:17:38
shka
ACTION opens the source code of nyxt
17:18:06
shka
ACTION proceeds to screech *UNACCEPTABLE*
17:18:13
shka
jmercouris: it is not that bad
17:18:34
shka
but master was broken yesterday
17:18:41
shka
and that guix package crashes
17:20:57
shka
but I've seen worse lisp code
17:24:56
jcowan
I once saw code in which a 100 element array was initialized to 0 with 100 assignment statements. Written by a consultant.
17:28:26
aeth
at least he knew what an array was
17:28:42
aeth
a0 = 0; a1 = 0; a2 = 0; ...
17:35:27
yitzi
Did you ask him where he learned how to do that? I would just die if said he copy-pasted it.
17:46:27
jcowan
I don't think anyone asked him anything
17:50:30
pjb
jcowan: /* (dotimes (i 10) (insert (format "a%d = 0; " i))) */ a0 = 0; a1 = 0; a2 = 0; a3 = 0; a4 = 0; a5 = 0; a6 = 0; a7 = 0; a8 = 0; a9 = 0;
17:50:45
pjb
(He just tried to ensure job security?)
19:05:50
knusbaum
Hi, everyone. I'm playing with implementing a very simple swank server, but I'm having trouble finding good documentation about the various RPC calls.
19:06:05
phoe
knusbaum: curious question, which language are you writing for?
19:06:10
knusbaum
My current issue is that SLIME seems to call swank:autodoc with a bunch of previous buffer contents including prompts. I'm not sure how to tell emacs that the previous buffer contents should be ignored.
19:06:22
knusbaum
phoe: I'm writing this for my own lisp.
19:06:41
phoe
how to tell *emacs* though?
19:06:52
phoe
that's slime, the elisp side
19:06:57
knusbaum
Whichever SWANK client. I'm currently using emacs to test.
19:07:03
phoe
if you want to write a swank server, ideally you should not need to modify slime
19:07:32
knusbaum
No, Emacs/SLIME is issuing an RPC call I consider "weird", and I assume that's because I'm doing something wrong on the server side.
19:08:50
phoe
how is slime configured? slime-fancy?
19:09:00
phoe
maybe the client loads a bunch of contribs that the server does not support
19:09:54
knusbaum
That could be. From (swank:connection-info) I return :modules ("SWANK-ARGLISTS" "SWANK-REPL" "SWANK-PRESENTATIONS")
19:10:13
knusbaum
And I'm not receiving any relevant RPC calls to the server that are unhandled.
19:10:45
phoe
still, regarding all the various rpc calls, I don't know of any good documentation that isn't "ask a person knowledgeable in the topic"
19:10:48
knusbaum
That's why I'm wondering if I need to be sending other requests to the client like (:clear-prompt) or something.
19:11:13
phoe
and the latter would be, I guess, asking luis and/or Joao who is knowledgeable in the ways of slynk/sly
19:11:40
knusbaum
Is SLIME/SWANK active anymore, or is slynk/sly the way to go now?
19:12:19
phoe
slynk has simply diverged too much functionally to be merged back into slime
19:12:25
phoe
both are active and maintained
19:13:48
phoe
I guess that, as a last resort, you could try to make a forum post at https://github.com/joaotavora/sly/discussions
19:14:35
phoe
(since that's where joao asked me to point people to if they have any kind of sly questions, and I guess that questions about the rpc protocol are borderline on-topic there)
19:14:57
knusbaum
Thanks very much, phoe.
3:05:45
beach
Good morning everyone!
Tuesday, 8th of June 2021, 4:47:13 UTC