sitepoint.com sitepoint.com

iPhone Basics: Memory Management

One of the biggest sources of confusion for new iPhone developers is memory management. If you’re accustomed to using convenient, garbage-collected scripting languages, you may be wondering why memory management is even necessary. Although Cocoa does support garbage collection, it was deemed too great an overhead for a phone platform. Therefore, it’s important for developers to know how to allocate and release objects...

javaworld

Oracle, Google move to streamline Java lawsuit

Google and Oracle each submitted proposals on Friday to reduce the number of claims in their Java patent infringement lawsuit, which could help bring the case to a speedier conclusion.Oracle sued Google in August, claiming its Android mobile operating system infringes on seven of Oracle's Java patents. Google has denied all wrongdoing.[ Discover what's new in business applications with InfoWorld's Technology: Applications newsletter. |...

utcc.utoronto.ca utcc.utoronto.ca

How CPython implements __slots__ (part 2): access

In the first part I covered how the __slots__ instance attributes were stored (in an ad-hoc array of pointers that is glued on the end of instance objects), but that's only half of the puzzle. The other half is letting people access them, and that's what this entry is about. As it happens, it's reasonably common in CPython for C-level types to want to give people Python-level access to fields in C structures, common enough that the...