• 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: Cocoa runtime VM?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa runtime VM?


  • Subject: Re: Cocoa runtime VM?
  • From: John Stiles <email@hidden>
  • Date: Thu, 28 Jul 2005 11:07:45 -0700

I could be wrong, but I don't think there is anything that does exactly what you want. I know some engineers are working on automatic garbage-collection in Cocoa, but I don't think it's usable yet.

OTOH, you may be overanalyzing memory management. 99% of the work is just comprehending how Cocoa's refcounting works; i.e. how the convenience creation functions differ from alloc/init, and how autorelease pools work. Once you understand the system, there is very little more that you have to do in your code.

FWIW, garbage collection also has a set of rules that a programmer has to understand in order for it to work. For very simple code, the rules are simpler, yes, but in reasonably complex code, garbage collection requires a similar level of programming savvy to Cocoa's memory management (IMO). It's not a magic bullet. Also, "using a VM" doesn't imply "uses garbage collection" at all... you're presuming that all virtual machines work like Java, which isn't true.


On Jul 28, 2005, at 10:59 AM, Robert MacGregor wrote:

Is there a runtime VM/intermediate-code tool for Cocoa/Obj-C? E.g. I could compile my Cocoa/Obj-C code to an intermediate-code/ bytecode format and then run it inside a Cocoa/ObjC VM.

Why? Cocoa/Obj-C is great but, sometimes, I wish I could leave the memory management out of the code (like Java or C#). I realize there are scenarios where customizing memory usage is required; "one size does not fit all". For many projects memory/speed is not an issue and some kind of Java/C#-like memory handling would make coding easier and faster.

BTW my post isn't intended to be inflammatory. The intention wasn't to start a flame-war about the relative merits or demerits of Java or C#! :-)


Rob


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Cocoa runtime VM?
      • From: Damien Bobillot <email@hidden>
References: 
 >Cocoa runtime VM? (From: Robert MacGregor <email@hidden>)

  • Prev by Date: Pasting into an NSBox
  • Next by Date: QTMovie under NSTextView
  • Previous by thread: Cocoa runtime VM?
  • Next by thread: Re: Cocoa runtime VM?
  • Index(es):
    • Date
    • Thread