r/Clojure • u/yogthos • May 05 '20
Kosmos: experimental graphical development environment for Clojure
https://www.youtube.com/watch?v=DTHAY9-1UhI2
u/jiyinyiyong May 06 '20
I see JSON is used in the demo. Maybe also you can use EDN and reuse [my toolchain to generated Clojure(Script)](https://github.com/Cirru/sepal.clj) code(lack of support for macros though).
2
u/yogthos May 06 '20
You might want to ping the author on Twitter, here's the thread about the project.
18
u/gzmask May 05 '20
The brilliance of this is to use euclidean distance to determine the imperative order of forms. This allows the freedom of movement without the chaotic of a graphical interface.
13
u/didibus May 05 '20
Wow this looks awesome!
One question I have, since there's an export to .clj, is there an import for .clj files as well?
Also, why json and not edn ;)
5
u/davclark May 05 '20
This is really neat, and feels like it's situated amongst things like Racket (as taught in bootstrap) and Scratch - but letting you possibly switch more easily between a graphical and "traditional" text version. Are you using this to work with kids at all?
3
u/kloimhardt May 07 '20
I made a Scratch-like tutorial for Clojure: https://kloimhardt.github.io/clj_blocks.html
1
u/davclark May 08 '20
Nice! Thanks for linking it. I realized after I asked the question that u/yogthos actually posted the above, and it's not clear that the author is even reading these comments :P
2
May 06 '20
This is really cool! I can imagine pinch-zooming out and exploring the file/dependency tree.
2
u/coltnz May 06 '20
Be awesome to watch execution flow with data updates. Perhaps a big speed dial to twist. Then an auto relayout to watch the channels flow through..
2
u/vaibhawc May 30 '20
I haven't seen the entire video but this is a brilliant attempt. I am not a good ui-dev but I can feel for sure that graphical methods to create codes will work in case of a lisp, although they fail with other languages. Lisp enforces imagining a process as a network of processes. I consider myself a newbie when it comes to clojure but I will be glad to contribute to this or such projects. My background is more from statistical computing and one thing I dream of doing is drawing the neural networks rather typing classes for them. Also, I remember Hal Ableson pointed out in one of the SICP early video lectures that it is due to technology of that time that they are typing those programs otherwise they would just draw them as graphs.. seems like time has come.
6
u/editor_of_the_beast May 05 '20
I really think this is going to be the future of programming. It gets unwieldy for very large programs, but I think that can be involved with zooming / focusing on certain subgraphs.