Re: [MacRuby-devel] [ANN] MacRuby 0.7
On Oct 12, 2010, at 15:03 , Laurent Sansonetti wrote: > Hard to tell, how do you reproduce this? > > I wouldn't look too much at the stacktrace, since the symbols might be > corrupted. > `macrake` in isolate will reproduce immediately. ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] NSArray constructor broken?
These work for me too on trunk, but I am seeing some GC issues. I’ve updated the ticket with examples. On Fri, Oct 15, 2010 at 12:23 AM, Laurent Sansonetti wrote: > Hi Perry, > If you install the nightly build, you can still go back to 0.7 by > re-installing 0.7 on top of it after. > Laurent > On Oct 14, 2010, at 3:16 PM, Perry E. Metzger wrote: > > On Thu, 14 Oct 2010 14:01:31 -0700 Laurent Sansonetti > wrote: > > All of these work fine in my environment: > > [...] > > I will have a look, but could you try a nightly build and see if > > you still reproduce the problem? > > I'm using 0.7. Is there a good way for me to try the nightly build > without installing it for real? > > > -- > Perry E. Metzger [email protected] > > > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
[MacRuby-devel] Converting Ruby-style method signatures back to Obj-C style
Hi all,
I have a somewhat esoteric problem and I was wondering if anyone had
suggestions about how to deal with it.
Basically I'm writing a Ruby class that wraps some Objective-C classes and
provides a common interface to them, and I'm using method_missing to pass
along messages if the wrapped object understands them. This works great for
simple methods that don't have named parameters. However, by the time a call
hits method_missing, MacRuby has already converted the method signature to a
Ruby-style call.
For example, one object I'm wrapping has a method "doScript:in:" - but by
the time that hits method_missing I have a method with signature "doScript:"
and a list of arguments like "script, {:in => target}".
Now of course, I can add some logic to my method_missing handler to check if
the second param is a Hash and reconstruct the Obj-C method signature from
that. I'm just wondering if MacRuby provides a built-in way to do that, or
if I'm missing an easier way to handle this...
Any input appreciated!
Thanks,
-Gabriel
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] NSArray constructor broken?
On Fri, 15 Oct 2010 10:28:18 +0200 Eloy Duran wrote: > These work for me too on trunk, but I am seeing some GC issues. I’ve > updated the ticket with examples. It also works for me on the trunk. Presumably it needs to be fixed for 0.7? I don't see the gc issues but perhaps I'm not running with the right flags to see debug messages of that sort? Perry -- Perry E. [email protected] ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] BridgeSupport Preview 1
Hi, I just pushed 0.7.1 which is basically 0.7 + fixes to support the new BridgeSupport. You can find a pointer to it from this blog post: http://www.macruby.org/blog/2010/10/08/bridgesupport-preview.html Enjoy, Laurent On Oct 11, 2010, at 2:55 PM, Laurent Sansonetti wrote: > Hi guys, > > As promised for a long time, we finally prepared a preview of the next > BridgeSupport implementation we have been working on. > > This new implementation has significant differences versus the current one; > the generator has been rewritten on top of clang/llvm. It now offers accurate > metadata representation of APIs, and it's also a lot faster and more stable. > Also, the project now covers all system frameworks (the previous release only > covered selected ones) and new API constructs (such as C-level blocks). > > I updated the project's homepage and pushed the latest sources, that you can > build yourself. > > http://bridgesupport.macosforge.org/trac/wiki > > However, since the new generator depends on the clang binaries, clang must be > built as part of the build process, so it may take some time. Therefore, I > prepared a binary installer here: > > http://www.macruby.org/files/BridgeSupport%20Preview%201.zip > > For MacRuby, you will need trunk, or tonight's nightly build, in order to use > the new files. I intend to release 0.7.1 tomorrow (or later) which will > include the necessary minor fixes. > > A well-known side effect of installing the new BridgeSupport release is that > `framework 'Cocoa'' takes more time to execute, since many more dependent > frameworks are covered. It takes a good second on my MacBook Pro, vs 0.3s > before. We will address this problem in the upcoming release of MacRuby, by > optimizing the BridgeSupport loader and maybe pre-compiling the files as > binary forms. But eventually this problem won't exist with static > compilation, since the BridgeSupport metadata is then compiled into the > binary and not loaded anymore at runtime. > > Laurent > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] NSArray constructor broken?
Hi Perry, The fix will ship in the next release (likely 0.8). As it may not happen soon, I recommend to grab a nightly build in the meantime. Laurent On Oct 15, 2010, at 4:25 PM, Perry E. Metzger wrote: > On Fri, 15 Oct 2010 10:28:18 +0200 Eloy Duran > wrote: >> These work for me too on trunk, but I am seeing some GC issues. I’ve >> updated the ticket with examples. > > It also works for me on the trunk. Presumably it needs to be fixed > for 0.7? I don't see the gc issues but perhaps I'm not running with > the right flags to see debug messages of that sort? > > Perry > -- > Perry E. Metzger [email protected] > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
