Thursday, April 3, 2008

Android v.s. Symbian OS

I came across a side-by-side comparison between Android and Symbian OS.

Other than some technical details, most of the items compared apply to Windows Mobile as well.





















































































































































































































AndroidSymbian OS
Business model
Revenue stream for creatorAdvertising, fairy dust?Fixed license fee per phone (with a few quirks, all publicly known
Source code availabilityAvailable to nobody yet. Available to all, in theory, one day.Available only to Symbian OS phone manufacturers, plus partners who pay a lot.
Source code modifiabilityFreely modifiable (although I seem to remember constraints for Open Handset Alliance members, presumably related to keeping the APIs sufficiently similar between devices to keep a common platform for developersModifiable, but with similar restrictions aimed at keeping a common platform.
End-user opennessEnd devices will probably accept Java-language applications. No evidence that they will accept native applications.All end devices accept Java-language applications, and virtually all also accept native applications.
Current market position in smartphone marketZero, but has Google behind itOverwhelmingly dominant in EMEA and Japan, reasonable success elsewhere except America. (American technology writers just don’t realise Symbian exists, and that it’s America which is unusual…)
Technical Basis
API languageJavaC++ (J2ME Java also available for a subset of APIs)
Standards-complianceHighly POSIXy for native handset software. Proprietary for high-level Java APIs.Proprietary. POSIX layer available, but it limits interaction with the rest of the OS so much that it’s only really used for porting software.
KernelLinux with minor changesProprietary
Basic user libraryBSD-derived libcProprietary
User interfaceUnknown; current is a ‘placeholder’None; UIs developed by Nokia (S60), DoCoMo (MOAP) and UIQ/Motorola/Sony Ericsson (UIQ). Other UIs have existed in the past.
Typical filesystemYAFFS2Proprietary.
Toolchain for native softwareStandard GCC, possibly requiring prelinking and other odditiesProprietary, built on top of GCC
Binary formatStandard ELFProprietary
Toolchain for typical third party softwareAnt-based, dex compiler, etc.Same toolchain for entire device
Debugging/profiling/investigation toolsStandard UNIX toolsNot a lot
Inter-process communicationUnclear. D-bus for some layers. OpenBinder for others. Possibly something different again for messages flowing between the Dalvik-side processes.Proprietary; based on client-server.
Features
Pre-emptive multithreadingYesYes
Memory protection between processesYesYes
Pre-emptible kernelYesYes
Demand pagingYesYes
Virtual memory (page outs)Probably not according to Dianne Hackborn; they are anticipating devices with 64MB RAM and 128MB flashNot yet, but it may not be long; Symbian OS has been in use on phones with hard disks for some time
Shared librariesYesYes
Copy-on-writeYesN/A (’fork’ is not used)
Reference counting of kernel objects and proper cleanup if a process diesYesYes
Approaches to problems
Flash space taken by many copies of symbol names for dynamic linkageUnknown; maybe just don’t use too many native programsLink by ordinal not by name
Memory allocationAllocate a big hunk of virtual address space for process. On write, try to free up enough physical RAM pages to give it the memory it needs.Allocate minimum virtual and physical address space; heap algorithms in user library know how to request more RAM from kernel.
Memory full behaviourKernel will kill other processes if necessary to relinquish physical RAM. If no physical RAM is available, program is killed.On some Symbian systems, user-side heap library may request other apps to exit. If no memory really is available, malloc equivalent throws an exception and application should be able to handle it.
Memory management within user codeCheck for NULLs from malloc if you’re lucky, but you’ve probably got spare virtual address space anyway so it’s unlikely you’ll be told of a memory allocation failureIncredibly anal rules about memory management
SecurityEach process runs as its own user. Unclear how this prevents access to certain APIs that could do destructive things.Processes have capabilities and can only access APIs appropriate to their capabilities. Applications must be certified and are then signed such that they cannot access APIs beyond their capabilities.
Overhead of loading binariesStore application code as dex files which can just be mmap’ped inStore application code as native code which can just be mmap’ed in (or equivalent)
Overhead of interpreter startupApplication interpreter starts once (Zygote) and all other processes fork from thatNo interpreter - native applications
ComponentisationSoftware uses ‘intents’ to say what it wishes to do. Other software can fulfil the intent.Applications typically rigidly defined (but can load plug-ins).
XML and text files are inefficientCompile XML down to a binary representationCompile resource files down to a binary representation
Overhead of multiple threadsRemove need for multiple threads, but allow developers to use them if they wish. Provide event loop which runs in main thread and can respond to most events. Allow events to be posted onto event loop using handler object.Remove need for multiple threads, but allow developers to use them if they wish. Provide object-oriented event loop in main thread (’active scheduler’), using ‘active objects’ to respond to each type of incoming event.

Overhead of making APIs and libraries thread-safeInsist they are used only from main threadRun in a different process; use IPC for all UI requests. And indeed pretty much anything else.

Tuesday, March 18, 2008

Slashdot: High Expectations For Google Android

Check out this Slashdot story, which is a nice summary of latest Android news.

Now it seems clear that Android phones are competing with iPhones.

Now it is clear that iPhone is used as the phone that every OEM wants to beat, including those Windows Mobile Seven based phones.

I would like to publicly make a speculation that Android phones will reach 1 million in less than 6 months from the debut, which is sometime in the second half of this year.

How long will it take for Android phones to reach 10 million? I would say 18 months.

Friday, February 1, 2008

Microsoft Acquires Yahoo

MSFT made an offer to buy YHOO at $31 a share today, Feb 1st, 2008. This will be the largest tech acquisition ever. This boosts Microsoft to Search #2, and gives it a very nice web portal (yahoo.com).

As for the mobile field, not much impact as I see it. Yes Yahoo has bought a mobile developer team directly from Motorola. However, Yahoo barely made any big in this area, except that Yahoo Go! software. Let's see how it turns out...

Sunday, January 20, 2008

Thursday, January 17, 2008

The Race Is On

It has been quiet out there on Google Android and Open Handset Alliance lately.


But from various sources I have, several OEM/ODMs are working around the clock to get their Android phone shipped PRETTY SOON. At least one major US operator has already signed up to ship one Android phone this year. Clearly the race is on to ship the 1st Android phone.


As for how the phone looks like, I heard Android phones will look much better than the “Wistron gPhone that was shown at CES”. Guess how many Android phones will be shipped this year? Will it have a huge impact on Windows Mobile?