Search
Monday, 5th of April 2021, 21:48:59 UTC
21:50:26
moon-child
I think there was another c compiler written in lisp. Not sure how much progress it had made. The mezzano thing I know was mature enough to run quake
22:03:05
Nilby
moon-child: maybe you're thinking of https://github.com/vsedach/Vacietis
22:08:00
moon-child
I think that was it. Given some of the TODO items, it looks less far along than I thought
22:15:22
jmercouris
that is incredibly impressive
1:26:22
Josh_2
How can I connect to a lisp image that is already running in sly?
1:26:52
Josh_2
My emacs has frozen and I need to connect to the image it had running
1:27:01
Josh_2
I don't know if the underlying lisp image has frozen
1:29:01
tetrahedron
Josh_2: SLY or SLIME?
1:29:10
pjb
Josh_2: well, I don't know about sly, but if a swank server is running, you connect to it with M-x slime-connect RET
1:29:30
Josh_2
just got a connection refused
1:30:12
pjb
Of course, if there's no swank server listening, the only solution would be to do a gdb attach to the frozen emacs process, and to try to locate and use the socket connected to the image.
1:30:13
tetrahedron
https://joaotavora.github.io/sly/#Communication-style
1:30:26
pjb
Perhaps closing it would be enough, if the swank server loops on listening.
1:30:34
tetrahedron
i think this config var is what you need to fix to choose a lisp server
1:31:31
pjb
Josh_2: if this problem occurs often, you could prepare by running multiple swank servers in the lisp image, or some other listening server.
1:34:07
Bike
this looks like slime's communication style, which isn't quite the same
1:34:21
Bike
seems there's an M-x sly-connect to use
1:34:33
Bike
though you'll have to figure out what port the lisp is listening on if any
1:35:01
pjb
sudo netstat -tpnl |grep $your_lisp
1:39:06
pjb
Without the -l you can see the open connections: sudo netstat -tpn |grep $your_lisp
1:39:33
pjb
If it's still connected to emacs, as I said above, you can use gdb to attach to the frozen emacs, try to locate the socket and close it.
1:39:42
pjb
Or just kill the frozen emacs.
1:40:18
Josh_2
If I kill the frozen emacs that will shut the lisp image
1:41:39
pjb
So you mean that the lisp image was launched by emacs.
1:42:08
pjb
Instead, launch your lisp images separately, run a swank server in it, and use slime-connect instead of slime.
1:42:19
tetrahedron
how bad would that be Josh_2 :/
1:42:26
Josh_2
Not that bad tetrahedron
1:42:35
Josh_2
I will be able to fix it
1:42:54
Josh_2
pjb: I will do that, I have been meaning to create a deploy system for this. Lesson learned
2:13:10
Josh_2
I export a macro called 'pkv' from my main package and in a sub package, I use this macro extensively, this package has (use <main package>) in its defpackage, why am I getting an error telling me that pkv isn't defined?
2:14:53
no-defun-allowed
Stupid question, use or :use?
2:15:59
no-defun-allowed
I'm out of ideas then.
2:16:00
Bike
well, from that description it should work, so clearly there's some devil in the details
2:16:11
Bike
what particular error do you get? udnefined function?
2:17:00
Bike
you might have to share source then
2:39:08
White_Flame
are you (in-package ..) correctly?
2:39:15
Bike
the package definitions, i guess
2:39:37
White_Flame
(as a 2nd stupid question)
2:40:20
Josh_2
White_Flame: yes I have (defpackage .. ) then (in-package ..) after
2:43:28
Josh_2
https://plaster.tymoon.eu/view/2374#2374
2:49:05
White_Flame
and matrix-moonbot has pkv?
2:49:14
Josh_2
all the other functions work
2:49:19
Josh_2
Yes it works in all the other modules defined that way
2:49:26
White_Flame
and it's actually exported?
2:49:30
Bike
what is the definition of matrix-moonbot.
2:50:13
White_Flame
also ensure matrix-moonbot:pk tab-completes with a single colon
2:50:32
White_Flame
and/or (describe 'matrix-moonbot:pkv)
2:51:19
Josh_2
When I'm in the mm-module.jitsi it does
2:51:49
Josh_2
And then describing it while in that package it returns what I'd expect
2:52:03
Josh_2
'pkv names a macro ... '
2:54:11
White_Flame
single-colon, and it says it's exported?
2:54:31
Bike
and it actually exists? (macro-function 'pkv) in mm-module.jitsi returns something?
2:55:40
White_Flame
if you just C-c C-c an expression, instead of C-c C-k'ing the entire file, it might not have actually run the in-package. I've hit that on simple files
2:58:12
Josh_2
Turns out it was absolutely nothing to do with that package...
2:58:29
White_Flame
let me guess, pvk vs pkv?
2:58:43
Josh_2
nope, I was using pkv before it was defined in a class definition file
2:59:07
White_Flame
it's weird not to load the full contents of a package before loading another one, though
3:00:35
Josh_2
Now I have another odd issue
3:01:18
beach
Good morning everyone!
3:09:28
Josh_2
Man I got you all excited, sorry xD
3:09:53
White_Flame
don't get me wrong, I'm happier to debug my own code than someone else's ;)
3:12:42
Josh_2
Well I guess having to restart was a blessing in disguise
3:13:10
White_Flame
restarting fixes a lot, but doesn't always tell you where the problem is, especially if it's dynamically munged
3:13:26
White_Flame
in the latter, you want to poke in the currently messed up state
3:18:44
Josh_2
In this case restarting brought up a few problems
3:18:53
Josh_2
I hadn't stopped the image for about a week
3:20:50
specbot
http://www.lispworks.com/reference/HyperSpec/Body/m_loop.htm
Tuesday, 6th of April 2021, 9:48:59 UTC