Fork me on GitHub
#clj-kondo
<
2023-04-22
>
borkdude14:04:53

I sometimes I have ideas for fun projects but not always time to realize them. One of those fun projects that has been in the back of my mind is creating a code visualizer like the Github UI. When you view code in the Github UI you can click on things for navigation and see cross references. I want to make a similar thing for clojure code but then based on clj-kondo analysis. Would it be useful? I don't know? Fun? Maybe. Does it take time? Yes, but maybe not that much. If you have thoughts on this, please respond in thread.

❤️ 1
lispyclouds17:04:40

One way to reduce some work is to use SourceGraph’a SCIP: https://about.sourcegraph.com/blog/announcing-scip The project could be to convert kondo’s analysis to SCIP and SourceGraph takes care of the rest: visualise, nav etc. I can ask TJ from nvim core who works there to help merge it up stream, probably could be a part of https://github.com/sourcegraph/scip-java like kotlin/scala? What do you think?

Ben Sless05:04:24

You mean something like https://github.com/jpmonettas/clograms/ ? I have general interest in something like this, with an added bonus of loading it from inside a running process and having different front ends for it Emacs, Clerk, Portal, Membrane I'm interested in how this can enhance the repl experience

👏 1
❤️ 1
phronmophobic07:04:15

I'm also interested in a similar idea. It's part of the reason behind dewey. Not only can you jump to source, you could look up usages/references across github (or other open source repositories that get indexed in the future).

borkdude07:04:03

I didn't mean something like clograms or SCIP: basically just the Github code UI but powered by clj-kondo analysis for better navigation/references that what Github currently has.

borkdude07:04:39

I'd prefer to just have static HTML that you could serve as part of your Github pages