Skip to main content

Google reportedly considering possibility of Swift as programming language for Android

Apple’s recently open-sourced programming language, Swift, may be seeing itself get adopted into Google’s Android platform in the future. Sources have told The Next Web that Google is “considering making Swift a ‘first class’ language for Android”.

Google’s mobile platform currently runs off of Java as its main language, and the inclusion of Swift isn’t seen as to replace Java initially. With Swift being open-source, Google could toy with Swift as it evolves to discover if it would even be a good fit for the Android platform, according to the report.

Some have speculated that an app written in Swift would then be able to run on both Android and iOS, although that isn’t quite accurate. Android and iOS may share the same language in the future, but platform-specific API differences between the two means that apps on either won’t magically run on the other. Though, it would make developing between both platforms easier in the sense that developers wouldn’t have to develop across two different programming languages.

The report also notes that some low-level Android APIs are written in C++, something which Swift can’t currently bridge too. This would require some finessing on Google’s part to make compatible.

We’ve seen some big players come out with support for Swift, most notably IBM with their Kitura framework.

FTC: We use income earning auto affiliate links. More.

You’re reading 9to5Mac — experts who break news about Apple and its surrounding ecosystem, day after day. Be sure to check out our homepage for all the latest news, and follow 9to5Mac on Twitter, Facebook, and LinkedIn to stay in the loop. Don’t know where to start? Check out our exclusive stories, reviews, how-tos, and subscribe to our YouTube channel

Comments

  1. presslee - 9 years ago

    Android Carmel Apple
    IOS 131.0.5.21

  2. taoprophet420 - 9 years ago

    I am surprised Android has been able to run off Java this long. Java needs to die almost as equally as much as Flash.

    • Jake Becker - 9 years ago

      Yep.

      • Java is very user friendly and allows for multi platform portability not mention javascript for which internet works

      • tcb13 - 9 years ago

        @ISNot_Available: Do some reading before you speak. Java and Javascript are not related in any way. And Java is not “user friendly”.

      • realgurahamu - 9 years ago

        Ahmad_Sayed Java is a long dying platform which is both slow, unstable and insecure. Every single Java update patches some critical security flaw. Chrome already blocks Java now and refuses to allow applet loads because of the 3 reasons already mentioned, and even Jagex who make Runescape are releasing a new client which was programmed in C++ instead of Java because of performance reasons.

        Java cannot and will not continue into the future, and Google switching (even if slowly) to Swift is only a good thing for Android users who will see a huge performance increase across all supported devices, even low budget and older ones which get trashed by Android in it’s current state

    • Yaroslav Nechaev - 9 years ago

      You obviously don’t know what you are talking about. Java is a nice language.

    • Mark Lane - 9 years ago

      I think you are confused. The security issues with Java stem mostly from running Java Applets in the Browser. Java Applets may need to die but Java as a whole is very popular programming language in Enterprise Computing ans is going no where.

  3. IF Google does this, it is game over. Swift will become the de facto choice for mobile developers.

  4. Dan Beaulieu - 9 years ago

    You can interoperate with C++ easily by writing an Objectice-C++ wrapper and calling the wrapper from Swift.

  5. trparky - 9 years ago

    The real reason that Google is considering this is because of their lawsuit with Oracle over Java. Oracle sued Google over their use of their Java-like language in which Oracle claimed that Google copied much of Java’s API. The settle the lawsuit Google had to agree to replace much of the stuff that’s under the hood that powers Android with OpenJDK.

    Adopting Swift to replace Java would be a good idea in the sense that Google would escape the clutches of Oracle and their evil evilness.

Manage push notifications

notification icon
We would like to show you notifications for the latest news and updates.
notification icon
You are subscribed to notifications
notification icon
We would like to show you notifications for the latest news and updates.
notification icon
You are subscribed to notifications