23 Mar '12, 9am
@me1000 Yes, it has full support for GCD and blocks: Just use Ruby blocks. See and
Historically, the Ruby language has been firmly founded in the single-processor paradigm. Mainline Ruby uses green threads to simulate multiprocessing in Ruby; unfortunately, it’s difficult to properly harness the power of multicore processors with green threads. In late 2009, MacRuby bridged Ruby threads to native threads and removed the Global Interpreter Lock. Recently, however, MacRuby took a step forward that no other Ruby implementation – indeed, no other dynamic language – has offered: support for Apple’s Grand Central Dispatch library. Grand Central Dispatch, or GCD, is a technology designed to let programmers easily harness the power of multi-core processors. GCD hides the details of creating, managing, and destroying POSIX threads from the programmer, making it trivial to write programs that take full advantage of the power of multicore and multiprocessor systems...