[MacRuby-devel] Should the HotCocoa example on the home page run on 0.5 beta 2?

2009-12-18 Thread Jeremy Voorhis
I've just installed the latest MacRuby beta binaries on my new macbook, and this happens: Jeremy-Voorhiss-MacBook-Pro:~ jvoorhis$ cat test.rb require 'hotcocoa' include HotCocoa application do |app| win = window :size => [100,50] b = button :title => 'Hello' b.on_action { puts 'World!' } w

Re: [MacRuby-devel] [MacRuby] #514: Singleton + Inheritance causes ArgumentError

2009-12-18 Thread MacRuby
#514: Singleton + Inheritance causes ArgumentError +--- Reporter: lastobe...@…| Owner: lsansone...@… Type: defect | Status: new Priority: major

Re: [MacRuby-devel] [MacRuby] #477: Need GCD wrapper for dispatch_once

2009-12-18 Thread MacRuby
#477: Need GCD wrapper for dispatch_once +--- Reporter: ernest.prabha...@… | Owner: lsansone...@… Type: enhancement | Status: new Priority: minor

[MacRuby-devel] [MacRuby] #514: Singleton + Inheritance causes ArgumentError

2009-12-18 Thread MacRuby
#514: Singleton + Inheritance causes ArgumentError +--- Reporter: lastobe...@…| Owner: lsansone...@… Type: defect | Status: new Priority: major

Re: [MacRuby-devel] [MacRuby] #477: Need GCD wrapper for dispatch_once

2009-12-18 Thread MacRuby
#477: Need GCD wrapper for dispatch_once +--- Reporter: ernest.prabha...@… | Owner: lsansone...@… Type: enhancement | Status: new Priority: minor

Re: [MacRuby-devel] [MacRuby] #477: Need GCD wrapper for dispatch_once

2009-12-18 Thread MacRuby
#477: Need GCD wrapper for dispatch_once +--- Reporter: ernest.prabha...@… | Owner: lsansone...@… Type: enhancement | Status: new Priority: minor

Re: [MacRuby-devel] need review for macrubyc man-page

2009-12-18 Thread Ernest N. Prabhakar, Ph.D.
Hi Laurent, Much nicer. I'm still a bit confused with what you're doing with the first USAGE paragraph , though: > USAGE > The easiest way to compile an existing project is probably to generate > loadable object bundles for every Ruby source file, using the -C option. > These bundle

Re: [MacRuby-devel] How to test if you're running MacRuby vs. Ruby?

2009-12-18 Thread Dylan Bruzenak
I use defined? MACRUBY_VERSION, myself. A bit shorter ;) On Fri, Dec 18, 2009 at 3:34 PM, Josh Ballanco wrote: > Whoops...that's what I get for replying with untested code... > > > On Dec 18, 2009, at 12:14 PM, Paul Howson wrote: > > > On 17/12/2009, at 6:21 PM, Josh Ballanco wrote: > > > >> def

Re: [MacRuby-devel] dtrace and macruby - mailing lists

2009-12-18 Thread Ernest N. Prabhakar, Ph.D.
Hi Scott, On Dec 18, 2009, at 2:33 PM, Laurent Sansonetti wrote: > I'm not a DTrace expert but in my experience, dtrace takes a short time to > attach to a given process, and if the process exists prematurely it won't > work. I'm not aware of any way to work around that, except by patching the

Re: [MacRuby-devel] dtrace and macruby

2009-12-18 Thread Jordan Breeding
Scott, I have not had any trouble running macruby through dtrace here, can you send the contents of your dtrace script so that I can compare to my working files? Jordan On Dec 18, 2009, at 16:33, Laurent Sansonetti wrote: > Hi Scott, > > I'm not a DTrace expert but in my experience, dtrace ta

Re: [MacRuby-devel] Some OpenGL sample code

2009-12-18 Thread Laurent Sansonetti
Bonjour Julien, On Dec 18, 2009, at 4:54 AM, Julien Jassaud wrote: Hello to everyone, I tried to port two OpenGL sample code examples from the ADC in MacRuby ( and plan to port some more ). You can find both projects here : http://github.com/sojastar Awesome! I would love to ship these a

Re: [MacRuby-devel] dtrace and macruby

2009-12-18 Thread Laurent Sansonetti
Hi Scott, I'm not a DTrace expert but in my experience, dtrace takes a short time to attach to a given process, and if the process exists prematurely it won't work. I'm not aware of any way to work around that, except by patching the process to make it wait a bit more, as you did. This

Re: [MacRuby-devel] need review for macrubyc man-page

2009-12-18 Thread Laurent Sansonetti
Thanks all very much for the feedback :-) I merged I believe everything in r3132. Ernie: about the examples section, I agree it needs more work. For the moment I just renamed it USAGE which seems to fit better. Following is the new ASCII formatted version. Let me know if you have feedback

Re: [MacRuby-devel] How to test if you're running MacRuby vs. Ruby?

2009-12-18 Thread Josh Ballanco
Whoops...that's what I get for replying with untested code... On Dec 18, 2009, at 12:14 PM, Paul Howson wrote: > On 17/12/2009, at 6:21 PM, Josh Ballanco wrote: > >> def is_macruby? >> defined? RUBY_ENGINE && RUBY_ENGINE == 'macruby' >> end >> >> Cheers, >> Josh > > Thanks Josh. However I not

Re: [MacRuby-devel] How to test if you're running MacRuby vs. Ruby?

2009-12-18 Thread Jeremy Voorhis
> > i.e. the argument to defined? must be put in parentheses else MacRuby > crashes. > Only because && binds more tightly than method application. It would be nice if some of this code found its way into the Platform gem, or similar. I've found myself writing Kernel#macruby? in libraries a couple

Re: [MacRuby-devel] How to test if you're running MacRuby vs. Ruby?

2009-12-18 Thread Paul Howson
On 17/12/2009, at 6:21 PM, Josh Ballanco wrote: > def is_macruby? > defined? RUBY_ENGINE && RUBY_ENGINE == 'macruby' > end > > Cheers, > Josh Thanks Josh. However I note this works only if you write: defined?(RUBY_ENGINE) && RUBY_ENGINE == 'macruby' i.e. the argument to defined? must be put i

Re: [MacRuby-devel] need review for macrubyc man-page

2009-12-18 Thread Dylan Bruzenak
Minor typos: (adjustments in bold) -C Compile, assemble and link a loadable object file. This option pro- duces a Mach-O MacRuby loadable object bundle (.rbo) for every Ruby source file passed to* rubyc* using a default file rubyc is also able to generate a dynamic library

[MacRuby-devel] Some OpenGL sample code

2009-12-18 Thread Julien Jassaud
Hello to everyone, I tried to port two OpenGL sample code examples from the ADC in MacRuby ( and plan to port some more ). You can find both projects here : http://github.com/sojastar Both kind of work but have problems I can't find solutions to so I turn to the list for a little help. One o