Re: [MacRuby-devel] Speed

2009-11-23 Thread John Shea
Hi Uliano, The way I get the JIT to preprocess your fib code is simply to call the method once. For example I wrapped your code in a class (not that I am saying that it is necessary to do this - its just the first thing i tried and it worked) and then. (for example) afib.fib_iter(sum,10) and

Re: [MacRuby-devel] [MacRuby] #447: GCD Crashes

2009-11-23 Thread John Shea
Hi Pete, I imagine that this bug is similar to one I posted (420). I was getting similar behaviour and things much improved when I unrolled the loop. Maybe you could try that? (or try what i suggest below). I am waiting with bated breath to see Laurent's GCD code in the macruby version of Sinatra

[MacRuby-devel] String#getbyte not working?

2009-11-23 Thread Paul Howson
It appears the new String method called getbyte for Ruby 1.9 is not working? Results in an "Abort trap" message. ~/Dev $ macruby --version MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64] ~/Dev $ macruby -e ' "abc".getbyte(0);' Abort trap Paul Howson Warwick Qld Australia _

[MacRuby-devel] [MacRuby] #449: 0.5 build fails invoking macruby:dylib

2009-11-23 Thread MacRuby
#449: 0.5 build fails invoking macruby:dylib +--- Reporter: stephen.banna...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker

Re: [MacRuby-devel] [MacRuby] #447: GCD Crashes

2009-11-23 Thread Ernest N. Prabhakar, Ph.D.
Hi John, On Nov 23, 2009, at 1:03 AM, John Shea wrote: > I imagine that it is actually quite hard to turn ruby blocks into C blocks - > normally everything would be copied to the stack with C blocks - unless > manually copied to the heap - but probably in macruby they have to be > immediately c

Re: [MacRuby-devel] [MacRuby] #447: GCD Crashes

2009-11-23 Thread John Shea
> > > Did you mean the other way around? You seem to be discussing how to turn > C blocks into Ruby blocks. > hmmm? no that was not my intent. No I assume at some stage the ruby block has to be turned into a C block with associated scope - and from my limited knowledge on GCD that does not seem

Re: [MacRuby-devel] [MacRuby] #447: GCD Crashes

2009-11-23 Thread Ernest N. Prabhakar, Ph.D.
Hi John, On Nov 23, 2009, at 12:55 PM, John Shea wrote: > No I assume at some stage the ruby block has to be turned into a C block with > associated scope - and from my limited knowledge on GCD that does not seem so > easy. Again, I think I'm still missing your point. In the context of GCD, th

[MacRuby-devel] Commercial ready?

2009-11-23 Thread Matthew Winter
Hi, I was wondering if anyone thinks or has plans to use MacRuby 0.5 for a commercial application. My opinion is that with enough testing and waiting for the final 0.5 release that it would be good enough. Especially if the app can auto update so newer releases of MacRuby could be embedde

Re: [MacRuby-devel] [MacRuby] #447: GCD Crashes

2009-11-23 Thread John Shea
Hi again, thanks for the code .. I am actually not trying to make a point - just trying to learn, and start a discussion that leads to learning. since the code below means nothing to me - thats probably a good place for me to start. Cheers, J On Nov 23, 2009, at 9:58 PM, Ernest N. Prabhakar

Re: [MacRuby-devel] Commercial ready?

2009-11-23 Thread Giampiero De Ciantis
Without testing tools I think you are asking for trouble. That's what keeps me waiting. I would also wait for Apple to support it as a product. But I would confident if I had the appropriate safety net in testing tools. Cheers, -Gp On 2009-11-23, at 4:27 PM, Matthew Winter wrote: > Hi, > >

[MacRuby-devel] [MacRuby] #450: Spaces in file names break macrubyc

2009-11-23 Thread MacRuby
#450: Spaces in file names break macrubyc --+- Reporter: bskin...@…| Owner: lsansone...@… Type: defect| Status: new Priority: trivial | Milestone:

Re: [MacRuby-devel] Commercial ready?

2009-11-23 Thread Matt Aimonetti
What kind of testing tools are you thinking of? You can use Bacon to test your code, I believe Josh posted an example on the macruby website. I personnaly think that you can start your production application now and embed 0.5/trunk with the final release. Good luck -Matt Sent from my iPho

Re: [MacRuby-devel] Commercial ready?

2009-11-23 Thread Giampiero De Ciantis
Cucumber and RSpec are the tools I am familiar with. I know Bacon is an Rspec clone, but it doesn't handle some relatively simple applications I have built using RSpec. So it isn't going to work for me. If you are a Cocoa developer moving to MacRuby, maybe the tools available suffice. The lack o

Re: [MacRuby-devel] Commercial ready?

2009-11-23 Thread Matt Aimonetti
I see, out of curiosity, how would you expect cucumber to work for a cocoa app? - Matt Sent from my iPhone On Nov 23, 2009, at 13:46, Giampiero De Ciantis wrote: Cucumber and RSpec are the tools I am familiar with. I know Bacon is an Rspec clone, but it doesn't handle some relatively s

Re: [MacRuby-devel] Commercial ready?

2009-11-23 Thread Giampiero De Ciantis
I am not sure, maybe I am doing something wrong, but here is what I have tried: 1. Use RVM to make MacRuby my default Ruby 2. Install the Cucumber gem while MacRuby is my default VM 3. Run cucumber on an existing Ruby app that is tested using Cucumber (This fails every time I have tried) 4. Run R

Re: [MacRuby-devel] Commercial ready?

2009-11-23 Thread Matt Aimonetti
I see, I would suggest you talk with Eloy who's working on his Rucola port to MacRuby. I'm sure he would love some help. I will look into RSpec 2.0 alpha asap, but I just got home from RubyConf and see some time to chill out and catch up with work :) - Matt On Mon, Nov 23, 2009 at 3:41 PM, Giampi

Re: [MacRuby-devel] Commercial ready?

2009-11-23 Thread Laurent Sansonetti
Hi Matthiew, If you are considering using MacRuby to build a commercial Cocoa app, you should also consider the following limitations: - Limited Ruby compatibility. Our compatibility is not bad but if you want to use 3rd party Ruby libraries or gems you may hit some bugs. We are actively

Re: [MacRuby-devel] [MacRuby] #450: Spaces in file names break macrubyc

2009-11-23 Thread MacRuby
#450: Spaces in file names break macrubyc --+- Reporter: bskin...@…|Owner: lsansone...@… Type: defect| Status: closed Priority: trivial |Milesto

[MacRuby-devel] [MacRuby] #451: Attempting to require "nkf" results in a LoadError

2009-11-23 Thread MacRuby
#451: Attempting to require "nkf" results in a LoadError +--- Reporter: dwein...@… | Owner: lsansone...@… Type: defect | Status: new Priority: major

[MacRuby-devel] [MacRuby] #452: Segmentation Fault tracing back to openssl.bundle when authenticating with gcal4ruby

2009-11-23 Thread MacRuby
#452: Segmentation Fault tracing back to openssl.bundle when authenticating with gcal4ruby +--- Reporter: dwein...@… | Owner: lsansone...@… Type: defect | Status: new