12 Mar '12, 5am

HowDoesMacRubyWork – MacRuby:

This page collects various implementation details about MacRuby. For a user-friendly description, with examples, please see the MacRubyTutorial . Note that since MacRuby is still under development, the content of this page may not always be up-to-date. Class and Object Model Ruby classes in MacRuby are in fact Objective-C classes. Because it is not yet possible to completely express the Ruby semantics with the Objective-C runtime, some extra bits are still being allocated per class. For example, Objective-C doesn't allow instance variables to be added at runtime to a class, or classes to be nested, so MacRuby has to work around that. Every method defined on a class from Ruby is registered with the Objective-C runtime. On a similar note, all Objective-C methods are lazily available from Ruby too. The [ Libffi ] library is used to create closures at runtime and inject them, ...

Full article: http://www.macruby.org/trac/wiki/HowDoesMacRubyWork

Tweets

@me1000 Yes, it has full support for GCD and bl...

macruby.org 23 Mar '12, 9am

Historically, the Ruby language has been firmly founded in the single-processor paradigm. Mainline Ruby uses green threads...