[MacRuby-devel] sorting colors (MacRuby Graphics)

2010-07-15 Thread Matt Aimonetti
I wrote a new sample for MacRuby Graphics that samples the colors from a jpg and display them. I was trying to find a good way to sort the colors in a way that makes total sense (sort by color family and by brightness). Unfortunately, this isn't an easy thing to do, here is the result: http://img.

Re: [MacRuby-devel] [MacRuby] #794: `pthread_mutex_unlock(&t->sleep_mutex)' failed: Invalid argument (22)

2010-07-15 Thread MacRuby
#794: `pthread_mutex_unlock(&t->sleep_mutex)' failed: Invalid argument (22) --+- Reporter: watson1...@… | Owner: lsansone...@… Type: defect| Status: new P

Re: [MacRuby-devel] [MacRuby] #794: `pthread_mutex_unlock(&t->sleep_mutex)' failed: Invalid argument (22)

2010-07-15 Thread MacRuby
#794: `pthread_mutex_unlock(&t->sleep_mutex)' failed: Invalid argument (22) --+- Reporter: watson1...@… | Owner: lsansone...@… Type: defect| Status: new P

[MacRuby-devel] [ANN] minitest-macruby 1.0.0 Released

2010-07-15 Thread Ryan Davis
minitest-macruby version 1.0.0 has been released! * minitest-macruby provides extensions to minitest for macruby UI testing. It provides a framework to test GUI apps in a live instance. Documentation and examples are light at the moment as I've just thrown thi

Re: [MacRuby-devel] [MacRuby] #797: MacRuby throws an exception after running rspec example

2010-07-15 Thread MacRuby
#797: MacRuby throws an exception after running rspec example ---+ Reporter: hax...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker|

Re: [MacRuby-devel] [MacRuby] #797: MacRuby throws an exception after running rspec example

2010-07-15 Thread MacRuby
#797: MacRuby throws an exception after running rspec example ---+ Reporter: hax...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker|

Re: [MacRuby-devel] [MacRuby] #797: MacRuby throws an exception after running rspec example

2010-07-15 Thread MacRuby
#797: MacRuby throws an exception after running rspec example ---+ Reporter: hax...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker|

Re: [MacRuby-devel] [MacRuby] #797: MacRuby throws an exception after running rspec example

2010-07-15 Thread MacRuby
#797: MacRuby throws an exception after running rspec example ---+ Reporter: hax...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker|

[MacRuby-devel] [MacRuby] #797: MacRuby throws an exception after running rspec example

2010-07-15 Thread MacRuby
#797: MacRuby throws an exception after running rspec example ---+ Reporter: hax...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker|

Re: [MacRuby-devel] [MacRuby] #795: GCD inconsistently copies local variables inside blocks

2010-07-15 Thread Rob Gleeson
Oops, by the way, I just meant passing variables that would be written to. It'd require the user to be explicit about what variables they are going to write to, though. Rob http://robgleeson.github.comWebsite http://github.com/robgleeson GitHub r...@flowof.info

Re: [MacRuby-devel] [MacRuby] #795: GCD inconsistently copies local variables inside blocks

2010-07-15 Thread Rob Gleeson
Hey Ernest, Oh okay, and now that code makes more sense :-D I'm out of my depth here as I really don't understand GCD nor have I looked into your GCD library. I can only think of one thing, really, and that is to make "i" available as a block parameter. The variable would then be block-local,

Re: [MacRuby-devel] [MacRuby] #795: GCD inconsistently copies local variables inside blocks

2010-07-15 Thread Ernest N. Prabhakar, Ph.D.
Hi Rob, On Jul 15, 2010, at 2:34 PM, Rob Gleeson wrote: > Hey again, > > Sorry just had another idea - since it seems like you don't want the > enclosing scope/context to be evaluated in a thread, you could try using > instance_eval in a "blank" context where you won't have surrounding variable

Re: [MacRuby-devel] [MacRuby] #795: GCD inconsistently copies local variables inside blocks

2010-07-15 Thread Rob Gleeson
Hey again, Sorry just had another idea - since it seems like you don't want the enclosing scope/context to be evaluated in a thread, you could try using instance_eval in a "blank" context where you won't have surrounding variables available to your block. That, and passing arguments to the bloc

Re: [MacRuby-devel] some gcd issues

2010-07-15 Thread Ernest N. Prabhakar, Ph.D.
Hi Bernd, Hmm. Just got around to looking at this. I'm stumped. I added better diagnostics to gcd.c, and wrote up the bug for Laurent: Ticket URL: #796: Dispatch::Queue.main created with a different Queue class?!? -- Ernie P. _

Re: [MacRuby-devel] [MacRuby] #795: GCD inconsistently copies local variables inside blocks

2010-07-15 Thread Rob Gleeson
Hey ernest, I haven't got any experience with GCD but wouldn't it make more sense if block arguments were received as parameters to the block? This would make the variables block-local. Dispatch::Queue.new("i").sync { |i| # block local 'i' } Remember blocks in Ruby are closures, too. Rob

[MacRuby-devel] [MacRuby] #796: Dispatch::Queue.main created with a different Queue class?!?

2010-07-15 Thread MacRuby
#796: Dispatch::Queue.main created with a different Queue class?!? +--- Reporter: ernest.prabha...@… | Owner: lsansone...@… Type: defect | Status: new

Re: [MacRuby-devel] [MacRuby] #794: `pthread_mutex_unlock(&t->sleep_mutex)' failed: Invalid argument (22)

2010-07-15 Thread MacRuby
#794: `pthread_mutex_unlock(&t->sleep_mutex)' failed: Invalid argument (22) --+- Reporter: watson1...@… | Owner: lsansone...@… Type: defect| Status: new P

Re: [MacRuby-devel] [MacRuby] #634: Dispatch::Job fails with macirb

2010-07-15 Thread MacRuby
#634: Dispatch::Job fails with macirb +--- Reporter: igor.evsu...@… |Owner: ernest.prabha...@… Type: defect | Status: closed Priority: blocker

[MacRuby-devel] [MacRuby] #795: GCD inconsistently copies local variables inside blocks

2010-07-15 Thread MacRuby
#795: GCD inconsistently copies local variables inside blocks +--- Reporter: ernest.prabha...@… | Owner: lsansone...@… Type: defect | Status: new Pri

Re: [MacRuby-devel] [MacRuby] #738: A character string cannot be taken out of the variable made by Pointer.new('c').

2010-07-15 Thread MacRuby
#738: A character string cannot be taken out of the variable made by Pointer.new('c'). --+- Reporter: watson1...@… |Owner: lsansone...@… Type: defect| Status: closed

[MacRuby-devel] [MacRuby] #794: `pthread_mutex_unlock(&t->sleep_mutex)' failed: Invalid argument (22)

2010-07-15 Thread MacRuby
#794: `pthread_mutex_unlock(&t->sleep_mutex)' failed: Invalid argument (22) --+- Reporter: watson1...@… | Owner: lsansone...@… Type: defect| Status: new P

[MacRuby-devel] [MacRuby] #793: Iterator is executed more when calls Hash#shift in Hash's Iterator.

2010-07-15 Thread MacRuby
#793: Iterator is executed more when calls Hash#shift in Hash's Iterator. --+- Reporter: watson1...@… | Owner: lsansone...@… Type: defect| Status: new Pri

Re: [MacRuby-devel] [MacRuby] #792: Hash#delete while iterating is broken. (was: Hash#delete is broken.)

2010-07-15 Thread MacRuby
#792: Hash#delete while iterating is broken. --+- Reporter: watson1...@… | Owner: lsansone...@… Type: defect| Status: new Priority: blocker

[MacRuby-devel] [MacRuby] #792: Hash#delete is broken.

2010-07-15 Thread MacRuby
#792: Hash#delete is broken. --+- Reporter: watson1...@… | Owner: lsansone...@… Type: defect| Status: new Priority: blocker | Milestone: