Subscribe / Unsubscribe Enewsletters | Login | Register

Pencil Banner

4 no-bull reasons why Swift on Android won't come swiftly

Serdar Yegulalp | April 11, 2016
Making Swift a viable option on Android would be an arduous task. Here are the reasons why Google will remain ensconced on Java

Is Google eyeing Apple's Swift language as a possible "first-class citizen" on Android?

It's a good question, but here's a better one: How hard would it be for Google to make Swift a viable choice on Android for developers and users? Plus, why would Google undertake such a lengthy and arduous move in the first place?

Here are four reasons why Swift on Android is a tough proposition, as well as the obstacles Google and its developer community would face in making it happen.

It would be difficult on Android's part

Switching Android to Swift is nontrivial in the same way moving an extended family cross-country is nontrivial. First, Google would have to develop a Swift runtime for Android and deliver it side by side with the existing Java-powered runtime. Google has already done something along these lines -- swapping the Dalvik VM for the faster ART runtime -- but both were Java-based, so the job was a lot easier.

Even harder would be if Swift were to become the preferred language for Android. Moving to Swift would have to be done incrementally -- first with both Swift and Java VMs side by side, then with Swift-only over time. That kind of transition takes years, especially in an ecosystem as well-trafficked and sprawling as Android's.

Apple faces a similar issue, since it's needed to keep Swift and Objective-C ecosystems in place side by side for two years now. That's in a system where Apple controls everything. Imagine the complexities involved with Android, where the carriers, handset manufacturers, and Google are in a three-way tug-of-war.

Finally, this move would require the participation of Android developers -- many of whom might not want to come along for the ride.

It would be difficult on the developers' part

In addition to Google adding Swift to Android, developers would have to pick up on Swift.

Java was chosen for Android in big part to take advantage of the mass of existing Java development resources and programmer expertise. New and relatively untested, Swift doesn't have the same momentum.

Swift is gaining traction at a healthy pace, though. Developers are clearly getting enthused (as well as IBM), and in April it even cracked the top 20 of the Tiobe languages index (currently at No. 15).

Still, getting developers to ditch a language they know and adopt an entirely new one is no small task -- another reason why Swift and Java would have to co-exist in Android for years.

It would shift dependencies from Oracle to Apple

Right now, Android is planning to use OpenJDK rather than Oracle's Java, if for no other reason than to put more distance between the two companies after Oracle's ugly Android lawsuit. But there's little question Oracle still controls the future direction of Java.

 

1  2  Next Page 

Sign up for CIO Asia eNewsletters.