Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Swift being used in android would reap a lot of benefits for Swift - boost its popularity many fold in a small space of time.

Also - opens up the possibility of easier to share iOS / android code...
 
  • Like
Reactions: Jason83
As a lone App developer who only works on iOS, this could be what makes me finally consider
a) learning swift
b) re-writing my apps in swift (all in ObjC just now)
c) porting my apps to Android

This could be a strategic move brought on not only by Oracle's litigation but by Microsoft's recent acquisition of Xamarin.

The App market/gold-rush/craze/ has passed.
Cross platform development is where it's at right now.
 
  • Like
Reactions: iSRS
Google considering adopting apple technology? times have changed!
They are looking to get out of the Java royalty. After Oracle bought Sun, Java was most treated as a cash cow. When doing Android development, you have a choice of writing in native C code or in Java. (Yes, there are the assembly and cross compiler options but we will not go there.)

While there are some more efficient ways to compiling Java instead of just to a JVM, it is still not native code. Going Swift breaks from a lot legacy licensing from both Oracle and whomever is holding the IP for the C programming language and other derivative works (C++, Objective-C, D, etc.)

Right now Swift is "Show White and the Seven Dwarves" community where a peer of Apple's resources is really needed to refine the language and compiler performance. If this goes right, Swift will mature the same way C did after it left Bell Labs and Java (a.k.a. Oak) after it got out of PARC.
[doublepost=1460075768][/doublepost]
As a lone App developer who only works on iOS, this could be what makes me finally consider
a) learning swift
b) re-writing my apps in swift (all in ObjC just now)
c) porting my apps to Android

This could be a strategic move brought on not only by Oracle's litigation but by Microsoft's recent acquisition of Xamarin.

The App market/gold-rush/craze/ has passed.
Cross platform development is where it's at right now.

Professional programming languages are undergoing its biggest transformation since the mid 80's when the Pascal and COBOL communities nearly imploded transitioning to post-Ma Bell breakup, Bell Labs programming languages such as C and C++.

As a piece of advise, don't rewrite you apps in Swift. It is best to learn new languages with new projects. That way, you are learning the capabilities of new languages to new markets without any legacy on either the implementation or marketing end.
 
Last edited:
Just keep creeping toward that far-off day when I can ditch PHP on the server and JavaScript in the browser, all for the same language I use for app development.

JavaScript is the tough one. But nothing is stuck forever...
 
Use Nodejs. Javascript on server and client. One language.


Just keep creeping toward that far-off day when I can ditch PHP on the server and JavaScript in the browser, all for the same language I use for app development.

JavaScript is the tough one. But nothing is stuck forever...
 
Google initially used Webkit to ideate Chrome till it got popular and then dropped it later for new Blink engine. They may do the same with Swift. They don't have culture.
 
Java sucks
In what way exactly? Just to be clear, Android doesn't use the Java runtime so it doesn't deal with the issues the runtime does on client-side apps. And in the server world, Java is still widely used. In my experience, most people's opinion of Java cones from their experience with client apps which has nothing to do with how Android uses Java.
 
Google initially used Webkit to ideate Chrome till it got popular and then dropped it later for new Blink engine. They may do the same with Swift. They don't have culture.
Blink is still WebKit under the hood.
 
We've been talking about making an Android version of our app at work. Problem is that it's so expensive to port. Hopefully if Google decides to do this, they throw a huge number of people at the project and get it done quickly as this could probably save us a lot of money. Although then we have the other problem of our app not being fully written in Swift.

One has to think that Microsoft must be crapping their pants when they hear this. I only do coding on the web, but I'm definitely considering buying some books and learning Swift. I like to design apps and have had some cool ideas and mockups over the years. Would be neat to bring them to life and make some money!
 
Android is already a multi-language system. You can write apps in Java, you can write them in C/C++, or you can write them using Go. Not only that, but Google are also developing a framework to let you write apps in Dart. Could they add Swift? Sure, why not? There are loads of apps, loads of code, which is being shared between those platforms every single day. It's really not a very big deal. You can run software written in all kinds of languages on your PC/Mac, why should it be such a shock that your phone can do that, too? Google could have added in Obj-C support at any time (it's also Open-Source), and in fact, Microsoft already did (not only that, they ported over the freaking iOS APIs, too!).

That's right, you can write Universal Windows Apps in Objective-C using UIKit and run them on your PC, windows tablet and smartphone (so basically just your PC).

Yes. This has been known forever. Also, do to litigation issues with Oracle over Java, Google has been unable to update to anything newer than Java 6 (which is pretty old now - Java 8 came out 2 years ago and 9 is coming out soon.) So moving to Swift could be an advantageous move.

I'm sorry, but you're not up-to-date on the Android/Java situation. Android currently does not conform to any Sun/Oracle JDK - 5,6,7 or 8. That's actually what the Oracle litigation is about - Oracle owns the copyrights to those APIs. Notice we're not talking patents here, but copyrights - the same things musicians use to protect a song.

Oracle is saying that Google copied the "structure, sequence and organisation" of 37 specific Java API packages. Normally, Oracle might let them use the Java copyrights in order to promote the platform, but Google made enough changes that code written to work with Android SDK packages isn't compatible with the original Oracle SDK packages. So they're fragmenting the platform and doing damage to Oracle's business.

So MacRumors got this totally wrong, as lots of uninformed commentators do - the litigation with Oracle is not about the Java language!

Google has two options to get out of that situation with Oracle - bring the Android packages in to full conformance with Oracle's ones (thereby unifying the Java platform) or completely redesign their APIs so they don't infringe Oracle's copyright (breaking every Android app). Google has already decided on that front, and from Android N, they're replacing their home-brewed APIs with OpenJDK APIs from Oracle.

As it happens, Google are also introducing some language-level 8 features in Android N. They didn't need to move to OpenJDK or resolve their issue with Oracle to do that, though. The Java language itself is free.

So moving to Swift is not going to do them a blind bit of good when it comes to Oracle. In fact, it might even antagonise them even more - illegally using a non-standard derivative for almost a decade, and then switching right as they bring it in to conformity with the rest of the Java ecosystem.

I'm a python developer by trade but Swift seems to be the way forward for mobile apps at least. I wonder if the quant finance world will ever move in this direction... Is there a numpy equivalent for Swift?

Swift is still a very new language. As such, lots of libraries that you're used to from other languages don't exist yet, and if they do they won't be very mature and may be incomplete. In fact, the Swift language itself still has several holes.

That said, you're very welcome to write an equivalent package for Swift. If there's a library you really like, it's a great learning experience.

Once it becomes more stable, I expect Swift to see some significant adoption. Python is great because it's fast to write, but Python applications (since they are interpreted) may be highly unstable and significantly slower than a compiled application. People said it didn't matter on a practically-unlimited-power server; they were wrong. The ability of web applications to scale is becoming more and more important, and Swift gives you more bang per buck.
 
  • Like
Reactions: nilk
Not to mention Android Studio is soooooooo bad. I cringe every time I have to open it. It's like a massive applet from the 80s waiting to annoy me.
 
  • Like
Reactions: ChristianVirtual
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.