Using Ruby library in Lua

Hello Everyone,

I was wondering if it is possible to use a ruby library inside corona(Lua).

On google i found multiple converters to use lua inside Ruby, but not the other way around.

   --> The closest i found is Rlua: https://github.com/whitequark/rlua

Any tips / ideas suggestions ?

First you have to pay Enterprise license I beleive.

Than you can go to native.

Why not just learn Lua?  (I am not being flippant here.  This is a real question.)

Is it that you have a bunch of Ruby content you want to be able to use directly?

-Ed

Note: Even is you went ahead and integrated RLua into Corona (via enterprise) you wouldn’t gain much.  You’d still have to write Lua code to use and access Corona objects and functions.

RLua is not a bridge to Lua, you are basically shoehorning two interpreters into one environment: 

  • Ruby Interpreter
  • Lua Interpreter

Thank you for the responses!

Coding in lua is not a problem, Earlier this week i released a TD-game on app- and play-store.

But to get back to the point: I found a complicated ruby library to generate mazes, and since i have no experience with ruby, there was hope for a easy way out, instead of porting the whole library from ruby to lua.

Link: https://github.com/jamis/theseus

First you have to pay Enterprise license I beleive.

Than you can go to native.

Why not just learn Lua?  (I am not being flippant here.  This is a real question.)

Is it that you have a bunch of Ruby content you want to be able to use directly?

-Ed

Note: Even is you went ahead and integrated RLua into Corona (via enterprise) you wouldn’t gain much.  You’d still have to write Lua code to use and access Corona objects and functions.

RLua is not a bridge to Lua, you are basically shoehorning two interpreters into one environment: 

  • Ruby Interpreter
  • Lua Interpreter

Thank you for the responses!

Coding in lua is not a problem, Earlier this week i released a TD-game on app- and play-store.

But to get back to the point: I found a complicated ruby library to generate mazes, and since i have no experience with ruby, there was hope for a easy way out, instead of porting the whole library from ruby to lua.

Link: https://github.com/jamis/theseus