runrin has quit [Remote host closed the connection]
runrin has joined #racket
tnt2 has joined #racket
tnt1 has quit [Ping timeout: 265 seconds]
tnt2 is now known as tnt1
shawnw has quit [Ping timeout: 265 seconds]
Tuplanolla has joined #racket
edrx has joined #racket
<edrx>
I'm a newbie with racket and schemes and I was trying to understand what happens in drracket when we use "#lang slideshow" and then we run "(circle 10)"...
<edrx>
then I fell into several different rabbit holes
<edrx>
if I run just "circle" racket says "#<procedure:circle>"
<edrx>
what are the fields of a procedure object? does it have something that says in which file it was defined?
<edrx>
when I run Maxima and I run load("startsly.lisp") it runs that...
<bremner>
I'm not familiar with quicklisp at all, and it's been years since I used geiser. I generally prefer racket-mode, although it has less fancy REPL support.
<edrx>
ok...
<bremner>
maybe if you can say what you are trying to accomplish?
<bremner>
since maxima is not related to racket...
<edrx>
if I just run Maxima I can get a primitive SBCL REPL by running "to_lisp();"
<bremner>
oh. I just use slime for that.
<bremner>
I'm sure there is a more direct way with geiser as well.
<edrx>
I can get a much better repl if make Maxima load Swank, make Swank listen in a port, and then I make Sly connect to that Swank
<edrx>
oops, Slynk, not Swank
<edrx>
I am guessing that if I do something similar with geiser and racket I will be able to navigate the sources and inspect objects in a better way
<edrx>
or at least I will have two ways to do that... one from a racket repl and one from geiser
<edrx>
I am more familiar with that way of doing things that with racket-mode
<bremner>
what is it that the existing geiser repl does not provide for you?
<edrx>
the "," things
<edrx>
like ",ap require"
<edrx>
I don't know how to run them from geiser
<bremner>
sounds like you might want to look at "xrepl"
<bremner>
if I run (require xrepl) in the racket-mode repl (or elsewhere I imagine), it enables a bunch of , commands.
<edrx>
for example?
<bremner>
well. "a bunch" might be an overstatement. ,describe and ,apropos for example
<edrx>
bremner: that's one of the things that I was looking for! thanks! =)
<edrx>
how do I translate ",describe pict" to a sexp?
<edrx>
I don't know how comma commands are parsed
<bremner>
me neither. I did notice a comment in the documentation that things like ,exit worked even if/when the exit function was not visible in the current module
<edrx>
ok!
<edrx>
unrelated: if I run just this,
<edrx>
(require pict)
<edrx>
(circle 10)
<edrx>
the output is "#<pict>". in other languages I know how to change the tostring method of a class of objects, but in racket not yet...
<edrx>
and I was trying to understand how in certaing cases a pict object tells the repl that it should be shown as an image, not as text
<edrx>
i couldn't find the details of how that is implemented
<edrx>
this is an advanced question... I am asking because, I don't know... maybe you have an example ready =)
notzmv has quit [Ping timeout: 265 seconds]
Everything has joined #racket
<edrx>
btw, in emacs structs aren't very well documented... I can run this - (find-estruct (package-get-descriptor 'magit)) - to inspect a package-desc structure, and the output is: https://i.ibb.co/fxJwdy2/sshot.png
<edrx>
I had to make that find-estruct thing myself and it is a quick hack
Everything has quit [Read error: Connection reset by peer]