experimental branch: status update
Here is the weekly status update of the experimental branch! I'm sure you were all expecting it and holding your breath! - Implemented BridgeSupport constants, in a lazy fashion (the symbol is retrieved and converted at demand). - The Pointer class was re-implemented. Same behavior as in trunk but with a new implementation, based on LLVM. Also, a few changes: - Pointer.new is now an alias to Pointer.new_with_type - The first argument can be a symbol instead of the Objective-C runtime encoding type. Symbols currently supported: char, uchar, short, ushort, int, uint, long, ulong, long_long, ulong_long, float, double, string, pointer and object (which is @). These are the same types as used in the FFI API, by the way. - The second argument (optional) can be used to allocate a C array style pointer. The default value is 1. - #[]= was added to set a given Ruby object at the given slot. Note that it does not check bounds. #assign is a shortcut to #[]= with the first argument (slot index) as 0. - #type was added, which returns the Objective-C runtime encoding type. - Incoming pointers passed to an underlying C or Objective-C method will be checked for their type, and a TypeError exception will be raised if they do not match. - Blocks: - Using a block non-recursively should be faster (yay). If used recursively, some bugs have been fixed. - Local or dynamic variables in blocks transformed to Proc objects and leaving the scope of the method where they were created are now working (re-yay). The implementation does not impact the runtime performance of methods using blocks that do not leave their scope. - Ruby methods are now registered into the Objective-C runtime via a specialized stub that we compile at demand, which takes care of dealing with Ruby immediate objects or C types. This means all Ruby methods can now be called from Objective-C and can also overwrite any Objective-C methods. We can pass more Cocoa examples thanks to that. - Support for CoreFoundation types (same behavior as in trunk). - RubySpec was merged from upstream + more Encoding specs work! At this point Cocoa support is looking great and the next step will be to work on the project's installation. Once it can install itself, we can progress and start working on running real MacRuby apps (+ HotCocoa). Laurent
On May 4, 2009, at 5:35 PM, Laurent Sansonetti wrote:
We can pass more Cocoa examples thanks to that.
I've started translating the examples in /Developer/Examples into RubyCocoa & MacRuby. Is the MacRuby part redundant? http://github.com/marick/cocoa-examples-translated/tree/master ----- Brian Marick, independent consultant Mostly on agile methods with a testing slant www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
You probably meant: Ist the RubyCocoa part redundant? right? ;) - Matt On Thu, May 7, 2009 at 1:26 PM, Brian Marick <marick@exampler.com> wrote:
On May 4, 2009, at 5:35 PM, Laurent Sansonetti wrote:
We can pass more Cocoa examples thanks to that.
I've started translating the examples in /Developer/Examples into RubyCocoa & MacRuby. Is the MacRuby part redundant?
http://github.com/marick/cocoa-examples-translated/tree/master
----- Brian Marick, independent consultant Mostly on agile methods with a testing slant www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
On May 7, 2009, at 4:19 PM, Matt Aimonetti wrote:
On May 4, 2009, at 5:35 PM, Laurent Sansonetti wrote:
We can pass more Cocoa examples thanks to that.
I've started translating the examples in /Developer/Examples into RubyCocoa & MacRuby. Is the MacRuby part redundant?
http://github.com/marick/cocoa-examples-translated/tree/master
I meant that I don't want to translate /Developer/Examples examples to MacRuby if someone's already doing it. ----- Brian Marick, independent consultant Mostly on agile methods with a testing slant www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
Hi Brian Afaik you are the first to work on this ;-) As you could see I ported several of them to rubycocoa and macruby as part of their respective sample code, so feel free to reuse the existing work. Regarding macruby I think it would be awesome to ship them with the project, ultimately. Laurent Sent from my iPhone On May 7, 2009, at 2:22 PM, Brian Marick <marick@exampler.com> wrote:
On May 7, 2009, at 4:19 PM, Matt Aimonetti wrote:
On May 4, 2009, at 5:35 PM, Laurent Sansonetti wrote:
We can pass more Cocoa examples thanks to that.
I've started translating the examples in /Developer/Examples into RubyCocoa & MacRuby. Is the MacRuby part redundant?
http://github.com/marick/cocoa-examples-translated/tree/master
I meant that I don't want to translate /Developer/Examples examples to MacRuby if someone's already doing it.
----- Brian Marick, independent consultant Mostly on agile methods with a testing slant www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
I'd be glad to help you review your samples and commit them to the repo when ready since Laurent seems to encourage community submitted samples. - Matt On Thu, May 7, 2009 at 3:18 PM, Laurent Sansonetti <lsansonetti@apple.com>wrote:
Hi Brian
Afaik you are the first to work on this ;-)
As you could see I ported several of them to rubycocoa and macruby as part of their respective sample code, so feel free to reuse the existing work.
Regarding macruby I think it would be awesome to ship them with the project, ultimately.
Laurent
Sent from my iPhone
On May 7, 2009, at 2:22 PM, Brian Marick <marick@exampler.com> wrote:
On May 7, 2009, at 4:19 PM, Matt Aimonetti wrote:
On May 4, 2009, at 5:35 PM, Laurent Sansonetti wrote:
We can pass more Cocoa examples thanks to that.
I've started translating the examples in /Developer/Examples into RubyCocoa & MacRuby. Is the MacRuby part redundant?
http://github.com/marick/cocoa-examples-translated/tree/master
I meant that I don't want to translate /Developer/Examples examples to MacRuby if someone's already doing it.
----- Brian Marick, independent consultant Mostly on agile methods with a testing slant www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (3)
-
Brian Marick
-
Laurent Sansonetti
-
Matt Aimonetti