News for hackers. Stuff that matters.
Re:MacRuby 0.8 Released by ddagradi on Monday December 13, 2010 @10:54PM (#2003046)
Notable fixes - for my current project at least - include:

- no longer crashing when calling the main thread from a background thread

- supporting formal protocols (or at least pretending to enough to work right)

- properly changing the path of the library when you embed it in the executable, for distributing via an App Store

MacRuby has been a fantastic tool in developing for the Mac App Store with a team of programmers with a mixed knowledge of Cocoa and Objective-C. Super exciting to see it progressing so quickly!

Re:MacRuby 0.8 Released by petercooper on Monday December 13, 2010 @11:34PM (#2003135)
Naturally, Laurent is more authoritative but I wrote this up for Ruby Inside earlier - it might be more accessible to ppl not familiar with MacRuby and includes notes on two MacRuby books that are in the works: http://www.rubyinside.com/macruby-0-8-released-and-2-macruby...
Re:MacRuby 0.8 Released by ddagradi on Monday December 13, 2010 @11:44PM (#2003154)
It's great to see multiple books on the horizon. Matt's book was really a great reference when getting started.

I didn't notice that Hubcap was a MacRuby project! I'm looking forward to hearing about the challenges they faced in development. It seems like in the near future there will be a pretty great library of Mac software written in MacRuby...

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

Re:MacRuby 0.8 Released by ddagradi on Tuesday December 14, 2010 @09:10AM (#2004156)
Re:MacRuby 0.8 Released by kentosi on Monday December 13, 2010 @11:58PM (#2003175)
Does anyone know of any apps written in this?
Re:MacRuby 0.8 Released by ddagradi on Tuesday December 14, 2010 @12:12AM (#2003206)
A quick Github search turned up these: http://isaac.kearse.co.nz/2010/01/01/birdwatch/ http://isaac.kearse.co.nz/2010/01/31/stopwatch/ https://github.com/sstephenson/37signalsMenu https://github.com/ashchan/gmail-notifr

Hubcap will be when it's released (http://www.kickstarter.com/projects/1487030260/hubcap-a-gith...)

Hackety Hack (http://hacketyhack.heroku.com/) was talking about a version for the Mac App Store using MacRuby

Our current app will be open-sourced on Github soon...