6 ms·
That seems a really good argument for killing manual memory management, not for killing the GC option. As a user I want dev time to be spent adding needed featu
by tomjen3 12y ago
That seems a really good argument for killing manual memory management, not for killing the GC option. As a user I want dev time to be spent adding needed features, not chasing down memory cycles (which _will_ happen when you add something like blocks to a language without garbage collection).
As a programmer I don't want to litter my code with disgusting crap that only serves to tell the compiler something it should be able to infer anyway.
My suspection is that Apple is just doing it because they don't want to put the necessary RAM in their phones (Android has something like twice the amount of memory Apple has at this point).
- zbowling 12y agoThat is what ARC is for which is superior to the GC which never really worked properly anyways. ARC is deterministic. The only problem is that doesn't automatically handle retain cycles. ARC is compatible with manual reference counting entirely, but internally, when ARC detects the classes in a particular objects hierarchy are not doing anything fancy with MRC, it's super clever and bypasses it for a bit of a speed boost. It means that the developer doesn't have to do anything extra to be compatible with ARC from MRC or the other way around.
- tomjen3 12y ago>The only problem is that doesn't automatically handle retain cycles. That would be like saying the only problem with the Titanic is that it had a few extra holes in it. Of course what Apple really should do is dump its old tech and more to something new and more modern. I hate to say it but when even Java is more modern and can do stuff your system can't, it is time to upgrade (preferably to something other than Java).
- zbowling 12y ago> Of course what Apple really should do is dump its old tech and more to something new and more modern. They did. It's called Swift... and it uses ARC under the hood as well.
- pjmlp 12y agoSure it uses ARC under the hood. That hood is called Objective-C runtime and allows for interoperability with existing Objective-C libraries. So from the technical point of view only ARC made sense.