The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
RubyCocoa & RubyOSA progresses

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Laurent Sansonetti

Posts: 134
Nickname: lrz
Registered: Jun, 2006

Laurent Sansonetti is a software engineer at Apple Computer and a longtime Ruby enthusiast.
RubyCocoa & RubyOSA progresses Posted: Oct 11, 2006 7:16 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Laurent Sansonetti.
Original Post: RubyCocoa & RubyOSA progresses
Feed Title: lrz's diary
Feed URL: http://www.chopine.be/lrz/diary/xml/rss/feed.xml
Feed Description: lrz's diary
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Laurent Sansonetti
Latest Posts From lrz's diary

Advertisement

Haven't had a chance to write about the recent work that was recently introduced in those projects.

On the RubyCocoa front, libffi is now used everywhere, more specifically when branching new pure Ruby method implementations (using closures). This fixes some weird bugs related to floating parameters that were not properly handled when passing from ObjC to Ruby. And this removes the last place where NSInvocation was used, which is good for the performances. I'm going to do some benchmarking against the previous implementation in a couple of days, I will post the results.

On another side, the bridge support XML format was refactored and now describes more things like ObjC informal protocols. This removes the DummyProtocolHandler mechanism, and indirectly the last thing that was generated at build time (which is good for maintenance). The XML format also describes some kind of exceptions, like C-array-like arguments whose size is delimited by some context at runtime (like the value of another argument, or terminated by NULL, or with a fixed size, etc...). Problematic methods include for example [NSArray +arrayWithObjects:count:], or [NSBezierPath -appendBezierPathWithPoints:count:]. These exceptions can't be determined automatically though, that's why they are kept in a separate file that is read by the gen_bridge_metadata program when generating the final metadata file.

All this work is available in a new unstable branch, and appears to be stable enough to be tested. I consider releasing the content of this branch as a developer preview in the very near future.

About RubyOSA, as I said previously it's almost ready for a first public release (modulo some things that I would like to support first, like timeouts and unicode strings). Some people are even seriously using it. I plan to release the first version in a couple of days. In the meantime, the website is up!

I will be in the SF bay area next week (until Thurday, then I flight to Denver for the promising RubyConf where I will talk about Ruby on Mac OS X). If you want to meet drop me a message, I will have some time to spare in the evening.

Read: RubyCocoa & RubyOSA progresses

Topic: PHP developers most likely to switch to Rails Previous Topic   Next Topic Topic: How effective can automated refactoring really be?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use