Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ruby/Python - mixed language apps, and garbage collection



Hi,

1) Can we add Python or Ruby classes to an existing Objective-C project? I can't find a sample that mixes languages. I tried adding some .rb files to my project, but they don't seem to be loaded at runtime. Is there a way to make this work (assuming mixing languages is supported at all)?

Sure. My project, LimeChat could be a sample.

http://limechat.sourceforge.net/

It uses RubyCocoa, mainly written in Ruby but contains some ObjC classes. You can download the source code from the site.

2) In the WWDC 2006 or 2007 slides there was a bullet about "Memory management does not work" and the vocal comment was that this was still being looked into. I didn't grasp the full consequences about this - was it saying no garbage collection for Python/Ruby programs at all? No garbage collection for mixed-language apps? Or just no GC on the Objective-C side of a mixed app? And, what is the current status of this rather important bullet?


Yes. Because it uses Python's or Ruby's GC.
About RubyCocoa, I'm not sure that it works well with ObjC 2.0 GC. But we don't need ObjC 2.0 GC. Because Ruby's GC takes care of all objects, both Ruby objects and Objc objects.


--
Satoshi Nakagawa

On 2007/11/19, at 0:58, Graham Perks wrote:

I couldn't find a more appropriate mailing list. I just have a couple of questions:

1) Can we add Python or Ruby classes to an existing Objective-C project? I can't find a sample that mixes languages. I tried adding some .rb files to my project, but they don't seem to be loaded at runtime. Is there a way to make this work (assuming mixing languages is supported at all)?

2) In the WWDC 2006 or 2007 slides there was a bullet about "Memory management does not work" and the vocal comment was that this was still being looked into. I didn't grasp the full consequences about this - was it saying no garbage collection for Python/Ruby programs at all? No garbage collection for mixed-language apps? Or just no GC on the Objective-C side of a mixed app? And, what is the current status of this rather important bullet?

Thanks,
Graham Perks.
http://www.asinglepixel.com
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Ruby/Python - mixed language apps, and garbage collection (From: Graham Perks <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.