> In MacRuby, all Ruby classes and objects are actually Objective-C classes and objects. There is no need to create costly proxies, convert objects, and cache instances. A Ruby object can be cast (toll-free) at the C level as an Objective-C object. The Ruby VM can also handle incoming Objective-C objects without conversion.
> In MacRuby, the primitive Ruby classes (e.g., String, Array, and Hash) have been re-implemented on top of their Cocoa equivalents (respectively, NSString, NSArray, and NSDictionary). As an example, all strings in MacRuby are Cocoa strings, so they can be passed directly to underlying C or Objective-C APIs. It is also possible to call any method of the String interface on any Cocoa string, subclass Objective-C methods, etc.
Interesting. Anyone used macruby, and would like to share experiences.
1. How is the learning curve for a ruby programmer ?
2. Are using the String and other core classes just the same as ruby, or more difficult / cumbersome.
3. Can you reuse code from pure ruby apps, or does this re-implementation cause issues/problems.
1. How is the learning curve for a ruby programmer ?
None. MacRuby is an implementation of Ruby 1.9. A very fast Ruby implementation, but, not a completely new language thats only similar. HotCocoa is a gem. A very useful gem that should be the first thing you install, but, a gem.
2. Are using the String and other core classes just the same as ruby, or more difficult / cumbersome.
Just as easily.
3. Can you reuse code from pure ruby apps, or does this re-implementation cause issues/problems.
Sure. Go for it. It is Ruby, after all. Just with an optional gem to access another framework, in this case, Cocoa.
> In MacRuby, the primitive Ruby classes (e.g., String, Array, and Hash) have been re-implemented on top of their Cocoa equivalents (respectively, NSString, NSArray, and NSDictionary). As an example, all strings in MacRuby are Cocoa strings, so they can be passed directly to underlying C or Objective-C APIs. It is also possible to call any method of the String interface on any Cocoa string, subclass Objective-C methods, etc.
Interesting. Anyone used macruby, and would like to share experiences.
1. How is the learning curve for a ruby programmer ?
2. Are using the String and other core classes just the same as ruby, or more difficult / cumbersome.
3. Can you reuse code from pure ruby apps, or does this re-implementation cause issues/problems.