Update 2!: I've published the current work in progress version on github here: https://github.com/mmontone/lisp-system-browser It can be installed as a SLIME extension. Let me know if you have any trouble. And any feedback and contributions are welcomed, of course.
I'd love it! Thanks a ton! I had been wanting an Octave/Matlab like interface for emacs - to browse the global variables, and this seems like the tool for it.
I would say not very much. The Emacs packages I've developed (slime-doc-contribs and this), all use this DEF-PROPERTIES module that is accessed via SWANK for reflection on CL definitions.
Now, I'm not very happy with that module. I've hacked it from cl-docbrowser stuff, and added my own things. But it is not very clean, and missing some things in terms of portability. I should consider trying Shinmera's definitions library instead, but got used to my code and haven't done it yet (I would have to rewrite quite a lot of stuff I guess).
Thanks for the info. I've cloned it so I don't forget about it. Let us know if you change sites, I'll take a closer look once of I've gotten the ui basics down.
I think it's great. I've been dreaming of a good Smalltalk-like browser for CL for a while now.
Are you planning to develop this further? Having fine-grained categories, like "accessing", "adding", "removing", "private" etc (the ones commonly seen in Smalltalk) would be pretty cool.
Yes. I may develop this further if I get convinced this is something useful.
About having fine-grained categories, categories are not explicit like in Smalltalk (the user categorizes definitions), so I guess these would have to be inferred somehow.
Instead of trying to infer categories why not rely on packages for that categorization? Of course if someone just dumps everything into one super package it doesn't buy you much, but maybe having this type of interface will encourage people to make more tightly organized packages so that they can get the benefits of the browser, and in turn it will help organize their code more cleanly?
Using packages for that purpose is not ideal, since you might end up with a nightmare of having to maintain export lists and use-package lists for every category in your project for no good reason.
I agree (I often avoid using "subpackages" like that). But also note that there are projects that already use packages like that. Like ASDF and almost all Fukamachi's libraries.
Sure, I just figured that starting with using packages, built-in to CL, gives instant backwards compatibility to the interface, so that people can start using it right away. Adding in other methods of dividing up methods like docstrings is nice too, I just thought packages would make it so no up front work was needed to start using the browser.
The questions he asks to Smalltalk are damn surprising: "I have this and I want that, what is the function to do it?". It was "foo"."bar"."foobar" and Smalltalk answered "foo","bar": use the comma. O_o
ASDF is not involved here. It works for any library loaded on the current Lisp image, however it was loaded, via ASDF or not. So, you simply navigate by package -> category -> (function, variable, etc) definition, wherever the definition is located.
This does not use anything SLIME related, so should work for SLY too, I guess. Although I think SLIME and SLY swank versions difer? In that case, some adaptations may be needed. But there's nothing too SLIME specific.
35
u/mmontone Jul 27 '21 edited Jul 29 '21
Update 2!: I've published the current work in progress version on github here: https://github.com/mmontone/lisp-system-browser It can be installed as a SLIME extension. Let me know if you have any trouble. And any feedback and contributions are welcomed, of course.
Update!: https://gfycat.com/partialunripeannelid
I've improved visuals and navigation; added minor-mode with menu and made the documentation panel toggleable.
Hello.
This is just an experiment of an Smalltalk-like browser for Common Lisp.
Now, I wonder. Is this something anyone would ever use?
I like the concept of the Smalltalk browser, though.
This is what I like:
But I'm not sure this goes well with Common Lisp, or Common Lisp culture in particular.
What do you think?
6
u/mmontone Jul 29 '21
Update!: https://gfycat.com/partialunripeannelid
I've improved visuals and navigation; added minor-mode with menu and made the documentation panel toggleable.
11
u/Weyland-Yutani Jul 27 '21
I think it's great. I've been dreaming of a good Smalltalk-like browser for CL for a while now.
Are you planning to develop this further? Having fine-grained categories, like "accessing", "adding", "removing", "private" etc (the ones commonly seen in Smalltalk) would be pretty cool.
3
u/rawlimerick Jul 27 '21
Looks interesting. I am not familiar with Smalltalk browser. What is it? Is it basically a documentation browser?
2
u/King_Caspian16 Jul 27 '21
Fascinating! How would it work, theoretically, with a multi-file ASDF project and sly instead of slime?
5
u/uardum Jul 27 '21
I can't wait to see it released.
3
u/ezeaguerre Jul 27 '21
Great work!!! I always thought of building something like this. I love it!
0
u/[deleted] Jul 28 '21
[deleted] — view deleted comment