Re: [MacRuby-devel] thread-safety and collections in macruby

2011-10-22 Thread Terry Moore
That's odd. I would still use freeze more rubyish... :) Terry Moore On 22/10/2011, at 6:41 PM, Michael Johnston wrote: > Thanks, I am using: > > results = NSArray.arrayWithArray(worker_results) > > which although it reports true for is_a?(NSMutableArray) is immutable. > > Cheerio, > > Micha

Re: [MacRuby-devel] locals & dispatch: is using a pointer the best practice?

2011-10-22 Thread Joshua Ballanco
On Saturday, October 22, 2011 at 1:35 AM, Michael Johnston wrote: > When I need to get a queue-protected result into a local in code that is > concurrent (so I can't use an ivar) is a pointer the best (only) way to get > the result of a sync block? Assuming I don't want to factor out a method >

[MacRuby-devel] Mailing list hosting (was: thread-safety and collections in macruby)

2011-10-22 Thread Sven A. Schmidt
> Hmm thanks, I didn't realize we had a google groups mirror. I'm wondering if > we shouldn't just move there since it's much easier to use and maintain than > macosforge. > Thoughts, ideas, suggestions? I'd personally prefer that a lot over a mailing list! In trying to work around this, I've t

Re: [MacRuby-devel] locals & dispatch: is using a pointer the best practice?

2011-10-22 Thread Michael Johnston
Very strange, your example works for me in irb too. Irb must do something odd with locals. Have you tried this outside of irb, though? If you wrap with a method def'n in irb, it behaves differently, and the fact that locals are copied has been discussed lots on the list. But Laurent (I think) sa

Re: [MacRuby-devel] brace yourselves, 0.11 is coming!

2011-10-22 Thread Steve Clarke
Hi, I installed 0.11 using the installer pkg. The install seemed to work fine. However, when I run my app I get a message that wasn't there with 0.10 or with an earlier build of 0.11. Here's the console message: Membership(4727,0x1043bf000) malloc: *** auto malloc[4727]: error: GC operation

Re: [MacRuby-devel] locals & dispatch: is using a pointer the best practice?

2011-10-22 Thread Joshua Ballanco
Ah, indeed, there are subtle differences with lvars at the top-level in IRB vs in a method scope. Not sure if I'd consider this a bug or not, but to illustrate: >> result = nil => nil >> Dispatch::Queue.concurrent.sync do >> result = true >> end => nil >> result => true >> def test >> result