News for hackers. Stuff that matters.
Re:MacRuby 0.8 Released by jbrennan on Monday December 13, 2010 @11:46PM (#2003158)
I wonder if this will ever be used as an alternative to Objective-C for iOS.
Re:MacRuby 0.8 Released by chc on Tuesday December 14, 2010 @12:18AM (#2003217)
There has been some research to that end. The main hurdle there is that MacRuby depends on the Cocoa garbage collector, which is intentionally not supported on iOS. For iOS, they would need to either find another garbage collector that works well with MacRuby and somehow magically Does The Right Thing with all the SDK classes, or else teach the MacRuby compiler to insert retains and autoreleases where needed.
Re:MacRuby 0.8 Released by batterseapower on Tuesday December 14, 2010 @03:01AM (#2003489)
Plausible Labs have released PLBlocks - a version of GCC + a runtime library that allow you to use garbage collection in your iOS apps. Presumably MacRuby could just use the runtime library to provide the GC support it needs.

The BridgeSupport issue (mentioned by another commenter) is more troublesome.

Re:MacRuby 0.8 Released by jballanc on Tuesday December 14, 2010 @01:47AM (#2003370)
The garbage collector isn't the only issue. Compiled Obj-C code does not retain sufficient metadata (i.e. variadic methods, enums, and such) to do certain "ruby"-ish things. Currently, this is resolved using BridgeSupport, which is also not currently available on iOS...
Re:MacRuby 0.8 Released by chc on Tuesday December 14, 2010 @04:36AM (#2003668)
MacRuby's Clang-based version of BridgeSupport should already be most of the way to solving this problem. (I haven't tested, but I can't see why that would not be the case.)
Re:MacRuby 0.8 Released by jballanc on Tuesday December 14, 2010 @11:01PM (#2006998)
The Clang-based BridgeSupport preview only improves the metadata generation. There's still no way to package the metadata that is iPhone friendly. Ultimately, a likely solution will be to add the metadata to an extra __TEXT segment and use dlopen/dlsym to fetch it from the MacRuby runtime...
Re:MacRuby 0.8 Released by jbrennan on Tuesday December 14, 2010 @12:21AM (#2003221)
Ah, that hadn't crossed my mind. But I'm guessing that new modern compiler-environment of theirs sure could be useful surmounting such a hurdle.
Re:MacRuby 0.8 Released by bradlane on Tuesday December 14, 2010 @12:21AM (#2003220)
i believe it may be a possibility in the future. see here:

http://news.ycombinator.com/item?id=1684403