[MacRuby-devel] Objcetive C methods not "visible" from MacRuby

2009-11-29 Thread Uliano Guerrini
To start playing with mixed Cocoa and MacRuby classes I created a Foo Objcetive C Framework containing just one class Roo: #import @interface Roo : NSObject { float aValue; NSNumber *anotherValue; NSMutableString *aString; } @property float aValue; @property(retain) NSNum

Re: [MacRuby-devel] Speed

2009-11-22 Thread Uliano Guerrini
Thank you all I didn't realize that JIT in macruby is compiling on the fly the code piece a piece (I thought that a source file was the compilation unit) and so JIT time to compile the block was inside my time metrics I re-run the test looping many times and the results are speaking for themsel

[MacRuby-devel] Speed

2009-11-22 Thread Uliano Guerrini
I'm new to Ruby BECAUSE of MacRuby While learning I run this simple exercise (the sum of even fibonacci less than 4 million) on both MacRuby 0.5.2 and ruby 1.9.1. the recursive version runs about 5 times faster on MacRuby and that was expected but the iterative runs about 1000!!! times slower,