6 ms·
Hey, look me up in a year and explain why you were wrong. Go has been out for 6 years and has less than 10,000 questions on StackOverFlow: http://stackoverflow
by melling 11y ago
Hey, look me up in a year and explain why you were wrong.
Go has been out for 6 years and has less than 10,000 questions on StackOverFlow: http://stackoverflow.com/questions/tagged/go http://stackoverflow.com/questions/tagged/go
Swift has 37,000 questions in its first year: http://stackoverflow.com/questions/tagged/swift http://stackoverflow.com/questions/tagged/swift
I'm a fan of Go. I built my websites in it and I've written a few small apps.
However, you really are overlooking how much of a difference the bigger Swift community will be.
All bets are off if Google officially supports Go on Android.
Anyway, 1,000,000 Swift developers will change everything.
- bitmapbrother 11y agoOf course, all bets are off once Go becomes a first class citizen on Android.
- JustSomeNobody 11y agoThis cannot happen soon enough. I'm not saying this because of anything to do with Apple's Swift announcement. I'm saying this because it'll be a huge benefit to Android.
- zak_mc_kracken 11y ago> I'm saying this because it'll be a huge benefit to Android. reply How so? The language has a weaker type system than Java, doesn't support exceptions and requires error checking every other line, has very poor tool support (because the compiler was not designed with IDE's in mind). Except maybe add a few developers who refused to write code on Android because of Java, I really don't see what Go would bring to Android.
- deleted 11y ago[deleted]
- jophde 11y agoYou shouldn't be getting down-voted. The idea of anyone rewriting the entire Android Framework in Go when you can use better languages like Kotlin, Scala, Groovy, Clojure is asinine. Go will compile to Android architectures so you could do shared code in Go between iOS and Android like a C++ lib. That makes sense.
- JustSomeNobody 11y agoDid anyone say anything about rewriting the entire Android Framework? Nope. It was about Go becoming a first class citizen on Android. That doesn't mean it can coexist with Java for someone who needs a fancy IDE.
- jophde 11y agoIt already IS. You can compile Android NDK libraries with Go today. It isn't that useful because the NDK isn't hooked up with the Android framework which means you don't get lifecycle events. There was a whole Android framework written over the past decade or so in Java that abstracts this.
- vorg 11y ago> That would leave you with Kotlin/Groovy/Clojure/Scala for the view layer of your Android app if you choose not use Java > when you can use better languages like Kotlin, Scala, Groovy, Clojure is asinine You seem to be piggybacking an aspiring JVM language (Kotlin) on top of three other alternative ones that have already made it (Scala,Groovy,Clojure). Because that trick's already been done before with them (i.e. Groovy piggybacked on the quality of Scala and Clojure), it makes your list of examples of alternative JVM languages seem disingenuous.
- jophde 11y agoSorry about that. They all have tools that make them work on Android. Kotlin is reasonable option imo. It doesn't effect app startup and runtime size is so much smaller compared to the others. Clojure Android adds 3 seconds to startup time for example. I haven't used Scala so I am not sure how nice it is for Android.
- sacado2 11y agoType system strength does not correlate with language adoption. Else, nobody would use C, Python, PHP, Javascript, Perl, Ruby ; C++, C#, Java would be outsiders and almost everybody would use Ada, Haskell, OCaml. I agree with your last sentence, however.
- 72deluxe 11y agoUnless all those devs with apps on Android want to port all their code?
- s73v3r 11y agoWhile that would be nice, every indication is saying that Google has no interest in this right now.
- nemothekid 11y agoOTOH There are 70k Go repos on GitHub vs 31k for Swift (vs ~5k for Rust) - https://github.com/search?l=go&q=stars%3A%3E-1&ref=searchresults&type=Repositories&utf8=%E2%9C%93 https://github.com/search?l=go&q=stars%3A%3E-1&ref=searchres... - https://github.com/search?l=swift&q=stars%3A%3E-1&ref=searchresults&type=Repositories&utf8=%E2%9C%93 https://github.com/search?l=swift&q=stars%3A%3E-1&ref=search... - https://github.com/search?l=rust&q=stars%3A%3E-1&ref=searchresults&type=Repositories&utf8=%E2%9C%93 https://github.com/search?l=rust&q=stars%3A%3E-1&ref=searchr...
- melling 11y agoSwift repos will pass Go within 12 months. I think most iOS developers were holding off on Swift. Heck, Xcode and Swift, etc only became usable earlier this year.
- ikawe 11y agoMost people aren't writing open source iOS apps.
- cerberusss 11y agoNo but there are a lot of components.
- kibwen 11y agoThe numbers of results there vary wildly upon refreshing the page repeatedly. I'm getting ranges of 39k-79k for Go, 12k-42k for Swift, and 3k-9k for Rust. Also, in the absence of knowledge of what precisely is being measured (e.g. does it include forks?), we should probably only interpret these numbers as order-of-magnitude comparisons.
- MCRed 11y agoI think that doesn't support your hypothesis--- 31k in one year compared to 70k in 6 years implies a lot more momentum for swift than go.
- anthony_d 11y agoI think part of the parent comment's point was that Swift does/will have a lot of users. Right now those 10,000 Go questions cover a lot of server related issues; the 37,000 Swift questions are almost completely iOS questions. If I started writing an HTTP server in Swift the day it comes out I won't find much help but I'll have a mountain of unrelated answers to filter. Essentially Swift's adoption for iOS apps doesn't help and might hurt efforts to use it elsewhere. Look at Object-C: extremely common writing software for Apple; almost non-existent elsewhere, despite the fact that it has never been limited to Apple.
- wtallis 11y agoObjective-C never caught on outside of the Apple/NeXT ecosystem because its biggest advantages were in the application frameworks, not the language itself. By the time iOS made Objective-C popular there were entrenched alternatives in the C++, Java, and .NET ecosystems. Swift is facing the same challenges, but against a newer generation of competitors that are much less established. It's probably still an uphill battle for Swift to gain outside adoption, but it's not climbing a cliff.
- yawaramin 11y agoNot to mention, Swift the language itself, which is basically Rust with arguably an easier memory management model (all ARC) and Scala-like pragmatism (an OOP model built-in). Coming from ObjC, developers are showing a high level of interest in Swift. I might look it up when it comes out for Linux!
- scriptproof 11y agoI have carefully compared the two languages and I do not see more similarity than between Go and Swift or any other language. You have yourself cited the different memory management models, and this is the main characteristic of Rust. The sole common feature is the use of LLVM.
- jophde 11y agoWhy would I ever care about Go for Android when I can write apps in Kotlin? Kotlin is fully interoperable with Java. I don't have much experience with Swift but Kotlin is so nice. It has the best features from numerous languages such as Ruby. C#, etc. It's being made by Jetbrains who makes the the core of Android Studio so it will have support. Kotlin is also nearly as fast at runtime as Java with a tiny 200kb runtime. Almost all the magic happens at build time so your build time will be a little longer. Kotlin also works with any existing Java library, even annotation processing libs. Again, why would any Android developer choose Swift? Kotlin also runs fine on the server and it even compiles to Javascript. If I were a startup doing an iOS, Android, and a backend I would do either Go or Rust on the backend. You will be able to distribute a native lib with your Android or iOS that shares network and model logic. Go and Rust both are planning on supporting cross compilation to iOS and Android. That would leave you with Kotlin/Groovy/Clojure/Scala for the view layer of your Android app if you choose not use Java. Which is a good idea since there is no indication from Google Java 8 will be supported which means no lambdas unless you use an alt JVM language. On iOS you write your view layer in Swift. Both apps use the shared binary library.
- deleted 11y ago[deleted]
- edko 11y agoIf you use Scala for your view layer, why would you even want to use Go for your back end?
- jophde 11y agoVery true. I am starting to not see the point of Go. It's about the same performance as the JVM languages and the JVM is just as easy to deploy. On the JVM you get to choose between Clojure, Scala, Ruby, Groovy, Kotlin, and more. JVM is just as easy to deploy as a Go binary too. Personally, I plan to stick with JVM languages plus Rust.
- dschiptsov 11y ago
- drkrab 11y agoIt seems to me that Dart would be a more obvious choice should Google choose to push a new application development language for the Android platform. It's closer to JavaScript and has more GUI/visually-oriented libraries. Plus, it's a no-brainer to box such apps in a HTML5 container for iOS/Windows.
- IsTom 11y ago> Anyway, 1,000,000 Swift developers will change everything. All of these objective-C developers changed nothing for non-ios crowd. Why would swift be different?
- weavie 11y agoLinux support.
- kibibu 11y agoGCC has supported Objective-C since at least version 2.0, released in 1992 (based on http://www.informatica.co.cr/linux/research/1992/0222.htm http://www.informatica.co.cr/linux/research/1992/0222.htm)
- 72deluxe 11y agoThis is very very true. I remember trying to look into Objective C years and years ago and trying to get somewhere on my Linux box but due to the lack of standard GUI libraries etc. it seemed a non-starter.