Down the Ruby Rabbit Hole
Posted: Sat Mar 09, 2019 3:25 am
NB: Please don't skip straight to the download. This is partly a little experiment, and you need to follow the instructions to get the most out of it. In order not to spoil the fun with erm... "spoilers", don't look inside the module until you've done the experiments.
Going through my old projects as I migrate to a new machine turned up some interesting things that I'd forgotten about, and I thought I'd present you with a little curiosity that I came across when delving into how Ruby is integrated into FlowStone.
If you open the little schematic that follows later, it seems innocent enough. It shows a little message saying that it's happy to be in your schematic, and shows the current running time of the schematic, as given by the Ruby time method, and the current system time. There's no redraw ticker, but you can force redraws by clicking the GUI or waving your mouse around to trigger FS workspace redraws.
Now try exporting it as a .exe file (remember where you put it, as you won't want to keep it!) Again, you can click on the GUI to make the executable redraw.
What does it tell you now?
Now try putting it in your toolbox (remember where you put it, as you won't want to keep it!). Expand your toolbox wide enough that you can read the text clearly, and force some redraws by wiggling the toolbox around.
And now?
What conclusions can you draw from its behaviour? (you're now allowed to look inside the module for clues!)
Going through my old projects as I migrate to a new machine turned up some interesting things that I'd forgotten about, and I thought I'd present you with a little curiosity that I came across when delving into how Ruby is integrated into FlowStone.
If you open the little schematic that follows later, it seems innocent enough. It shows a little message saying that it's happy to be in your schematic, and shows the current running time of the schematic, as given by the Ruby time method, and the current system time. There's no redraw ticker, but you can force redraws by clicking the GUI or waving your mouse around to trigger FS workspace redraws.
Now try exporting it as a .exe file (remember where you put it, as you won't want to keep it!) Again, you can click on the GUI to make the executable redraw.
What does it tell you now?
Now try putting it in your toolbox (remember where you put it, as you won't want to keep it!). Expand your toolbox wide enough that you can read the text clearly, and force some redraws by wiggling the toolbox around.
And now?
What conclusions can you draw from its behaviour? (you're now allowed to look inside the module for clues!)