views:

104

answers:

1

MacRuby 0.5 includes a ruby compiler built on LLVM called macrubyc.

Does anyone know if it would be possible to dynamically load gems from compiled code? Or compile the gems and link them in? Is this planned? Or how compiled code will be able to make use of gems in general.

+1  A: 

Turns out that as of MacRuby 0.6, something like this will compile

require 'rubygems'
require 'sequel'

DB = Sequel.mysql(...)

But fail at run time trying to load mysql leading me to think that it loads the gems at run time.

sal