[MacRuby-devel] [MacRuby] #381: Losing track of a defined constant - possibly related to Module.autoload

2009-10-11 Thread MacRuby
#381: Losing track of a defined constant - possibly related to Module.autoload ---+ Reporter: kamal.fa...@… | Owner: lsansone...@… Type: defect | Status: new

Re: [MacRuby-devel] [MacRuby] #370: Inconsistency between macruby and ruby in a simple class

2009-10-11 Thread MacRuby
#370: Inconsistency between macruby and ruby in a simple class ---+ Reporter: kfow...@… |Owner: lsansone...@… Type: defect | Status: closed Priority:

[MacRuby-devel] macruby on iphone (again) - options and way forward

2009-10-11 Thread John Shea
Hello everyone. So I think this topic is going to rear its ugly/pretty head until a solution becomes available, and I myself would really like to be able to use macruby code on the iphone. So I have put down my naive thoughts as to what are the issues. I am a complete novice when it comes

Re: [MacRuby-devel] MacRuby 0.5 beta 1

2009-10-11 Thread Eloy Duran
Laurent, as they say in french; congratulations on le grande effort! \m/ Eloy On Thursday, October 8, 2009, Laurent Sansonetti wrote: > Hi, > > The first beta release of MacRuby 0.5 is out! I prepared some notes here: > > http://www.macruby.org/blog/2009/10/07/macruby05b1.html > > The goal is t

Re: [MacRuby-devel] macruby on iphone (again) - options and way forward

2009-10-11 Thread Matt Aimonetti
John, thanks for sharing, look for an email from Laurent from about a week where he's explaining the plan for the iphone and what needs to be done to release/retain objects. I think the thread should help you and you might want to work with the other developer who already started looking into that.

Re: [MacRuby-devel] MacRuby 0.5 beta 1

2009-10-11 Thread Wayne Seguin
Not just yet but will be doing so asap. ~Wayne On Oct 10, 2009, at 14:54 , Matt Aimonetti wrote: Wayne, did you try Ernie's script? Martin, we actually do, if you check the nightly builds page, and click on details, you can see the logs and the spec results. - Matt On Sat, Oct 10, 2009

Re: [MacRuby-devel] MacRuby 0.5 beta 1

2009-10-11 Thread B. Ohr
Hi Laurent, I have to thank you (and all the others) for your great effort! When I first saw Obj-C (~1993, I don‘t remember exactly, I got a NeXT computer for testing purposes), my first thought was: What a weird language! At this moment absolutely nobody could foresee, that this will be t

[MacRuby-devel] NSTimer

2009-10-11 Thread Robert Rice
Congratulations MacRuby Development Team: My application almost runs now in MacRuby. Is NSTimer class supported in MacRuby? I was doing background processing using NSTimer as follows: @timer = NSTimer.scheduledTimerWithTimeInterval( 5.0, :target, self, :selector, :periodicUpdate, :userInfo,

Re: [MacRuby-devel] NSTimer

2009-10-11 Thread John Shea
Hi Bob, (you are going to kick yourself) you have misplaced the colon between target and self - there is a comma there, and the colon has been placed in front of "target", so the method is not being recognised. eg: @synchro_timer = NSTimer.scheduledTimerWithTimeInterval(TIME_INTERVAL

Re: [MacRuby-devel] NSTimer

2009-10-11 Thread Jordan K. Hubbard
On Oct 11, 2009, at 9:19 AM, Robert Rice wrote: Do you have a preferred method for doing backgound tasks in MacRuby - perhaps separate threads? I would say GCD is probably your best bet for this, since you can simply arrange to have a ruby block execute when your timer fires. Of course,

Re: [MacRuby-devel] NSTimer

2009-10-11 Thread Robert Rice
Thanks John:: I wasn't familiar with this new syntax. I was using the old syntax "NSTimer.scheduledTimerWithTimeInterval_target_selector_userInfo_repeats " but I see it doesn't work in MacRuby. MarRuby is giving me error messages without a traceback. Is there a way to enable tracebacks?

Re: [MacRuby-devel] NSTimer

2009-10-11 Thread Matt Aimonetti
The "NSTimer.scheduledTimerWithTimeInterval_target_selector_userInfo_repeats"syntax is the RubyCocoa syntax, you need to use the selector approach in MacRuby, very much like obj-C. If you are on 0.5 beta or a recent nightly build, you should get a traceback, otherwise, you can still try to catch

Re: [MacRuby-devel] [MacRuby] #370: Inconsistency between macruby and ruby in a simple class

2009-10-11 Thread MacRuby
#370: Inconsistency between macruby and ruby in a simple class ---+ Reporter: kfow...@… |Owner: lsansone...@… Type: defect | Status: closed Priority:

Re: [MacRuby-devel] macruby on iphone (again) - options and way forward

2009-10-11 Thread Laurent Sansonetti
Hi John :) On Oct 11, 2009, at 1:53 AM, John Shea wrote: Hello everyone. So I think this topic is going to rear its ugly/pretty head until a solution becomes available, and I myself would really like to be able to use macruby code on the iphone. So I have put down my naive thoughts as to

Re: [MacRuby-devel] NSTimer

2009-10-11 Thread Robert Rice
Hi Matt: I am using the most recent build. I get a traceback for compile errors but not for execution errors on the NS run loop. Bob On Oct 11, 2009, at 2:49 PM, Matt Aimonetti wrote: The "NSTimer. scheduledTimerWithTimeInterval_target_selector_userInfo_repeats "syntax is the RubyCocoa

Re: [MacRuby-devel] NSTimer

2009-10-11 Thread Laurent Sansonetti
In theory any runtime exception should be caught by the runloop and you should see a line in your Xcode console. As for your timer question, using NSTimer is definitely good in case your callback doesn't do too much. Since this will all be run in the main thread through the run loop, if you

Re: [MacRuby-devel] MacRuby 0.5 beta 1

2009-10-11 Thread Martin Hess
Matt, Is this the page? http://macruby.icoretech.org/details/29 It doesn't really show which tests are failing/skipped. On Oct 10, 2009, at 11:54 AM, Matt Aimonetti wrote: Wayne, did you try Ernie's script? Martin, we actually do, if you check the nightly builds page, and click on details,

Re: [MacRuby-devel] NSTimer

2009-10-11 Thread Robert Rice
Hi Laurent: NSTimer wil work well for my app except I will still need to use a thread to read data from my GPS receiver unless I can find a non- blocking serial I/O package. I see that Apple has developed a "Core Location Framework" for the iPhone but I don't see any documentation to indic

Re: [MacRuby-devel] NSTimer

2009-10-11 Thread Jordan K. Hubbard
On Oct 11, 2009, at 1:45 PM, Robert Rice wrote: NSTimer wil work well for my app except I will still need to use a thread to read data from my GPS receiver unless I can find a non- blocking serial I/O package. [ jkh jumps up and down yelling "GCD! GCD!" until he is dragged away] The Core

Re: [MacRuby-devel] NSTimer

2009-10-11 Thread s.ross
Well in the meantime, doesn't a daemon that issues distributed notifications accomplish a similar goal? Hunted and pecked from my iPhone On Oct 11, 2009, at 2:10 PM, "Jordan K. Hubbard" wrote: On Oct 11, 2009, at 1:45 PM, Robert Rice wrote: NSTimer wil work well for my app except I will s

Re: [MacRuby-devel] NSTimer

2009-10-11 Thread Robert Rice
Thanks: I filed the request. Bob Rice On Oct 11, 2009, at 5:10 PM, Jordan K. Hubbard wrote: On Oct 11, 2009, at 1:45 PM, Robert Rice wrote: NSTimer wil work well for my app except I will still need to use a thread to read data from my GPS receiver unless I can find a non- blocking serial I

Re: [MacRuby-devel] MacRuby 0.5 beta 1

2009-10-11 Thread Matt Aimonetti
That's the page, it will list all the failing specs, to see the details of the skipped tag, check: http://svn.macosforge.org/repository/ruby/MacRuby/trunk/spec/frozen/tags/macruby/ - Matt On Sun, Oct 11, 2009 at 1:43 PM, Martin Hess wrote: > Matt, Is this the page? http://macruby.icoretech.or

Re: [MacRuby-devel] Building MacRuby r2765 with llvm r82747 failed on core duo macbook, Leopard

2009-10-11 Thread hiroshi saito
Hi Laurent, > Strange. Could you try the following in the same directory and paste us the > output? > > $ ./miniruby -I. -I./lib bin/rubyc --internal -C "rbconfig.rb" -o > "./rbconfig.rbo" -V MacRuby - Laurent にコマンド実行結果を送る Hi Laurent, $ ./miniruby -I. -I./lib bin/rubyc --internal -C "rbconfig

Re: [MacRuby-devel] Building MacRuby r2765 with llvm r82747 failed on core duo macbook, Leopard

2009-10-11 Thread Vincent Isambart
At the line around 100 of bin/rubyc: init_func = "MREP_#{File.read(path).hash}" I extracted this line and execute it with -e option $ ./miniruby -I. -I./lib -e "p File.read('rbconfig.rb').hash" -107041289 I suppose that String#hash method will return an integer, that could be nagative val

Re: [MacRuby-devel] Building MacRuby r2765 with llvm r82747 failed on core duo macbook, Leopard

2009-10-11 Thread Laurent Sansonetti
On Oct 11, 2009, at 7:42 PM, Vincent Isambart wrote: At the line around 100 of bin/rubyc: init_func = "MREP_#{File.read(path).hash}" I extracted this line and execute it with -e option $ ./miniruby -I. -I./lib -e "p File.read('rbconfig.rb').hash" -107041289 I suppose that String#hash method

Re: [MacRuby-devel] Building MacRuby r2765 with llvm r82747 failed on core duo macbook, Leopard

2009-10-11 Thread Laurent Sansonetti
Hi Hiroshi-san, On Oct 11, 2009, at 7:11 PM, hiroshi saito wrote: Hi Laurent, Strange. Could you try the following in the same directory and paste us the output? $ ./miniruby -I. -I./lib bin/rubyc --internal -C "rbconfig.rb" -o "./rbconfig.rbo" -V MacRuby - Laurent にコマンド実行結果を送る Hi Laure

Re: [MacRuby-devel] Building MacRuby r2765 with llvm r82747 failed on core duo macbook, Leopard

2009-10-11 Thread Laurent Sansonetti
On Oct 11, 2009, at 10:10 PM, Laurent Sansonetti wrote: Hi Hiroshi-san, On Oct 11, 2009, at 7:11 PM, hiroshi saito wrote: Hi Laurent, Strange. Could you try the following in the same directory and paste us the output? $ ./miniruby -I. -I./lib bin/rubyc --internal -C "rbconfig.rb" -o "./rb

Re: [MacRuby-devel] Building MacRuby r2765 with llvm r82747 failed on core duo macbook, Leopard

2009-10-11 Thread Laurent Sansonetti
On Oct 11, 2009, at 10:10 PM, Laurent Sansonetti wrote: In fact, this crash is because of a limitation in the AOT compiler, I forgot to handle literal bignums. $ ./miniruby --emit-llvm foo omg -e "p 1267650600228229401496703205376" unrecognized literal `1267650600228229401496703205376' (clas