5

MacRuby 0.5 包含一个基于 LLVM 的 ruby​​ 编译器,称为 macrubyc。

有谁知道是否可以从已编译的代码中动态加载 gem?或者编译宝石并将它们链接起来?这是计划好的吗?或者编译后的代码将如何能够使用 gems。

4

1 回答 1

1

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.

于 2010-05-26T16:21:02.787 回答