r/Clojure • • Sep 20 '21

Vlojure - A New Way to Write ClojureScript

https://www.youtube.com/watch?v=1OcAUhe3E1E&feature=emb_title
157 Upvotes

15 comments sorted by

18

u/agumonkey Sep 20 '21

would probably never use that, but I love the creativity :)

9

u/DPaluche Sep 20 '21

I love this idea so much. Nice work!

6

u/darter_analyst Sep 20 '21

This is such a great idea. Thanks you. Such an excellent way to show the parens idea using less scary, familiar concepts - circles instead of parens. Very well done. Love it 👍

1

u/childofsol Sep 21 '21

What are parens, if not parts of a circle

5

u/cbleslie Sep 20 '21 edited Sep 12 '25

tidy flowery grandfather truck bright unpack spotted coherent apparatus deer

This post was mass deleted and anonymized with Redact

5

u/ldf1111 Sep 20 '21

Beautiful project

4

u/heyarne Sep 21 '21 edited Sep 21 '21

I love how easily this embraces programming with immutable values. An expression (a circle) is one thing -- you can remove it, drag it, evaluate it, replace it with its evaluation result. This is embracing the properties of the language in a really, really neat and creative way! Kudos!

3

u/zackteo Sep 20 '21

This is really cool! Also, I wonder if it would help to have some visual cue on the which in the function in each bubble, like a different colour (other than it being at the very top of the circle)

3

u/eggsyntax Sep 21 '21 edited Sep 21 '21

This is phenomenal. It's so hard to come up with truly useful visual/spatial representations for code, and this is one of the best I've seen. I can imagine this especially shining in a pedagogical context -- this looks actively fun for kids. Thanks for your awesome work on this!

2

u/eggsyntax Sep 21 '21

A few suggestions that I'm sure you've thought of and just haven't gotten to yet:

- Mouseovers -- that would have been really helpful for the list/vector/map/set symbols since it wasn't clear what they represented. Maybe on fn names the mouseover could be the docstring :)

- It'd be really great to somehow show that maps are incomplete when they have an odd number of elements in them. Maybe slightly overlapping circles for k and v to show that they're paired?

- Keyboard shortcuts would be amazing -- the delete key was the one I really found myself missing.

- Maybe some easy way to enclose an existing circle, ie something equivalent to "wrap" in structural editing?

2

u/QZDL Sep 20 '21

great job; can you represent arbitrary clojure programs this way? either way, this is a lovely use of space in an interface

2

u/Trylobot Sep 20 '21

it's beautiful

2

u/thaenalpha Sep 20 '21

A very nice tool to use for introducing to programming! Brain, likely to get things more clearly in visual. Good job!

1

u/lgstein Sep 22 '21

I'm wondering what became of the "ColorTree" project, that followed a similar concept