• 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: Graham Perks <email@hidden>
  • Date: Mon, 19 Nov 2007 07:12:26 -0600

Thanks, Bill.

I looked for "embedding" documentation but all I came up with was people embedding the runtime, Tiger-style. Similarly, your comment below is implying I'm on Tiger, right? I would be targeting Leopard so the Python/Ruby runtime is already compiled and in place, isn't it?

On Nov 18, 2007, at 11:32 AM, Bill Bumgarner wrote:

(Technically, there really isn't a reason why you couldn't enable GC for RubyCocoa and PyObjC. You would need to recompile the bridges and Python/Ruby interpreters with GC enabled.

In my head I would like to take an existing Objective-C application, and switch over to developing it in Python or Ruby. I'd be subclassing ObjC, creating objects on both sides of the bridge - all the stuff you do in a regular single-language application. Is this beyond what the bridge is intended for? If it is, that's OK, I'd just like to know!


Objective-C Garbage Collection cannot be enabled in Ruby/Python based Cocoa applications. Specifically, you can't use Objective-C objects on the scripting language side of the bridges.

So I can't pass NSString objects? I am limited to ints & floats and the like? GC on the Python/Ruby side is enabled, right - I don't have to start managing memory in Python do I?


Thanks,
Graham Perks.
_______________________________________________

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


  • Follow-Ups:
    • Re: Ruby/Python - mixed language apps, and garbage collection
      • From: Bill Bumgarner <email@hidden>
References: 
 >Ruby/Python - mixed language apps, and garbage collection (From: Graham Perks <email@hidden>)
 >Re: Ruby/Python - mixed language apps, and garbage collection (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: NSXMLDocument: uncomplete documentation
  • Next by Date: Re: KVO problems popping up in Leopard
  • Previous by thread: Re: Ruby/Python - mixed language apps, and garbage collection
  • Next by thread: Re: Ruby/Python - mixed language apps, and garbage collection
  • Index(es):
    • Date
    • Thread