Hacker News new | ask | show | jobs
by rick_2047 5657 days ago
Also, you learn about memory management and device constraints.

Didn't know that a tablet platform will have device constrain with so much processing power at hand. Will someone enlighten me about the amount of low level stuff (memory management and thinking about rams and disk space and the likes) goes into writing software for iPad or even an android and iPhone.

2 comments

> Didn't know that a tablet platform will have device constrain with so much processing power at hand.

These devices (Android/iOS devices) are fairly limited in power when compared to your average laptop or desktop.

For the iPhone and iPad, there's not much low-level stuff you'll normally worry about. Memory management is pretty easy to understand. In most cases, if you follow a few rules of thumb, you'll be okay.

There is a 10MB limit on 3G app store distribution; anything over that will be wifi only.

Memory management is handled via a set of rules that are basically if you create it you are responsible to release it. If you borrow it you must not release it. Similar to malloc/free and new/delete in c/c++. It is a level of abstraction higher though. You are dealing with retain counts and autorelease pools. A memory leak in an application can crash a phone with limited memory fairly quickly.