• Best way to go about embedding ruby in C application

    From kfjwheeler@gmail.com@21:1/5 to All on Sat Nov 12 21:54:26 2016
    Hello, I'm a first-time poster and new to ruby, but an experienced C programmer.

    A friend of mine is developing a game engine in C, and I was thinking of adding ruby scripting capabilities to this engine. However, I'm not sure what is the best way to go about doing this, so I have a few questions.

    1. Should I use standard ruby or mruby?
    2. If I use mruby, is there any way to include libraries? I have heard that requiring files is not supported in mruby.
    3. What would be the best way to manage development dependencies on whichever ruby implementation I pick?

    Thanks

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael Bruschkewitz@21:1/5 to All on Thu Nov 17 23:18:31 2016
    Am 13.11.2016 um 06:54 schrieb kfjwheeler@gmail.com:
    1. Should I use standard ruby or mruby?

    It's easy to use standard ruby, so there is no need to deal
    with limitations of mruby.

    2. If I use mruby, is there any way to include libraries? I have heard that requiring files is not supported in mruby.

    Embedding standard ruby provides the needed functionality.

    3. What would be the best way to manage development dependencies on whichever ruby implementation I pick?

    Which dependencies?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)