• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Ruby/Python - mixed language apps, and garbage collection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: Ruby/Python - mixed language apps, and garbage collection
  • From: Satoshi Nakagawa <email@hidden>
  • Date: Fri, 23 Nov 2007 13:41:20 +0900

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:
This email sent to email@hidden


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

  • Prev by Date: Re: Overlapping Views
  • Next by Date: HUD controls
  • Previous by thread: Re: Ruby/Python - mixed language apps, and garbage collection
  • Next by thread: Accessing C++ class method from ObjC++ code
  • Index(es):
    • Date
    • Thread