groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam L. Davis" <>
Subject [Groovy Console] reactive data visualization
Date Thu, 07 Mar 2019 13:50:27 GMT
Hi all,

Has anyone considered applying some of the concepts from "Inventing on
Principle" to the Groovy Console? If so please let me know. Not sure what
the proper channel is for this but I think some improvement could be made
in steps, each step being an improvement in itself and ending in a
"reactive data visualization" much like introduced by Apple about four
years ago:

1. Enable option for output to be on the right side. (horizontal split)
2. Add script binding (named _c maybe) to script which has a method or
methods that add a value to a list associated with current code line and
variable name (propertyMissing?). x = 1; _c.x = x
3. Output the values from _c into console's output. x = 1
4. Output lines up with code line that produced it (or at least near it).
5. Option to enhance byte-code so that _c.put(name, value) gets called
wherever possible without user explicitly coding it.
6. Group multiple values and don't display until a button is clicked or
similar. Large output, such as images, shows in a new window/frame.
7. Add to existing output visualizers to include simple graphs of values
over time.
8. Enable options to "dock" certain outputs  (embed in Groovy Console)
9 or earlier. Automatically run code after code is edited (optional and
automatically checks "Auto clear on Run" and unchecks "include code in

I'm volunteering to work on this to some degree. I've got pretty close to
step 4 already myself. I'm not sure about 5, but I don't think it would be
too hard for someone with relevant experience.

Sorry if this is old news - I didn't see any Jira issues or emails about
this when I looked. Here is the "Inventing on Principle" video:

"Wait, but why?" Because groovyConsole is a great way (for beginners
especially but everyone) to experiment with the language/JVM.


View raw message