News for hackers. Stuff that matters.
Re:Show HN: DragonRuby Game Toolkit by jchw on Tuesday April 06, 2021 @10:28PM (#26719925)
The irony is that Ruby was actually designed for this kind of thing. And in fact, RPG Maker XP’s Ruby Game Scripting System, a commercial usage of Ruby as an embedded scripting language for game dev, was released at least a few months prior to the first Ruby on Rails release if memory serves correct.
Re:Show HN: DragonRuby Game Toolkit by kamranjon on Wednesday April 07, 2021 @12:17AM (#26720544)
Do you have a source for the claim that ruby was designed for game development? I'm not saying it's wrong, I just have never heard that before.
Re:Show HN: DragonRuby Game Toolkit by jchw on Wednesday April 07, 2021 @06:31AM (#26722844)
Not necessarily game dev, but rather as an embeddable scripting language. There’s also mruby which is even more portable and designed to be more embeddable. My understanding is that in Japan, Ruby is often used as an embedded scripting language the way people might use Lua.

(I don’t have an exact source for this, it’s something that seems to come up periodically when talking about Ruby. Matz mentions it briefly when introducing mruby. I also don’t necessarily think it was conceived for this reason, but rather that over time, it fell into the niche and became influenced by it. But I’m not sure about that, either.)

Re:Show HN: DragonRuby Game Toolkit by castwide on Wednesday April 07, 2021 @09:02AM (#26724264)
I can vouch for Ruby's practicality as an embedded scripting language. The first time I used it was in a game engine (which, IIRC, also predated Rails) with a C++ core. Writing the high-level game logic in Ruby was pleasant, and hooking into C++ functions that did the heavy lifting kept it performant.