DEV Community

Discussion on: A new Smalltalk style environment for Ruby: the beginning

Collapse
 
choallin profile image
Gernot Gradwohl

This looks really interesting!

I'm really impressed with how you setup Ruby within a gui. Am I correct that you are gluing ImGUI with mRuby together? It appears to me that Ruby is running inside your event loop, does it have access to the gui to modify the gui itself as well? What parts of the gui are driven by Ruby? Is there a repository to look at the code?

Two or 3 months ago I took a look into Pharo Smalltalk as well. I was really impressed how well everything seems to work together and what you could achieve with this. But a disadvantage I personally didn't like was that the development wasn't just happening in the source but you would have to create some configuration that were stored in some arbitrary place in the Smalltalk VM. In the end this was the main point that put me off. But the concept behind the whole environment is really great. It would be awesome to have something similar in Ruby as well.

Collapse
 
roryo profile image
Rory O'Connell

Yep, ImGUI and MRuby. Right now the Ruby VM triggers on events from the render loop, yes. Similar to how a Ruby VM is idle with Rails until a request comes in. No plans on ticking the VM outside the render loop right now, I'm sure I'll hit some reasons for that soon.

No code publicly yet. This was the results of three days of hacking without knowing anything about what I was getting into in any front. By that I mean the first time I cloned ImGUI, mruby, building, and start gluing. It's extremely fragile at the moment, the vulkan renderer is barely functional and the whole thing crashes with the right Ruby incantation. Once I have more direction and start shoring up the exploratory code I'll put it somewhere.