TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Why Android should switch to Go

35 点作者 renownedmedia大约 13 年前

11 条评论

jff大约 13 年前
I would love to see Go being used instead of Java, however unlikely that may be (don't think the Android guys would be that thrilled to throw out all their work). This article, though, doesn't really make a good case for it. It just says, "Hey, Go is BSD licensed, and they call it a systems language! Look, here's Hello World!"
jzs大约 13 年前
While i truly love Go as a language i think it might still not be mature enough to be used as a full fledged language for Android. The garbage collector is still not mature and could use some optimizations.<p>You also call Java a systems language. I'm not sure i agree in that view since you don't have direct access to the hardware it runs on. You're still running on JVM which does jit compilation of your code. Java is a high level language falling into the came category as the .NET languages and Python.<p>I would still very much see Go on android as a fully supported language. Go is beautiful.
评论 #3977794 未加载
AncientPC大约 13 年前
When Go came out in 2009, Android was only 2 years old. Go was easily not mature enough.<p>Another consideration is Android was fighting for market share from Apple. Forcing Go on developers would just create another barrier to switching.<p>Go's ARM compiler (5g) still needs quite a bit of work before it can be used on Android. Right now, even the canonical "Hello World" program fails to work on a lot of Android phones.<p>There is too much momentum behind Dalvik that it would be near suicide to discontinue support. However that doesn't mean Android can't support both Java and Go in the future, but there must be a compelling reason to switch.
评论 #3978575 未加载
graham_king_3大约 13 年前
Brad Fitzpatrick, one of the core Go developers, used to work on Android.<p>There are regular discussions on the golang-nuts mailing list about Go on Android: <a href="https://groups.google.com/group/golang-nuts/search?q=android" rel="nofollow">https://groups.google.com/group/golang-nuts/search?q=android</a><p>I certainly hope for Go as a core Android language.
gatlin大约 13 年前
Objective-C, despite not being popular outside Apple, isn't proprietary at all. Many of Apple's frameworks are but the language itself is open. GNUStep is a resource for that.
评论 #3977886 未加载
geoffhill大约 13 年前
Probably a much better idea with the gift of hindsight. However, Objective-C is more than 28 years old, and Go is just 3 years old at time of writing. The Go language has changed and continues to change a lot, and tying such a large platform to it before it is ready would make backwards-compatibility a huge concern for Go, and stifle its innovative growth.
salimmadjd大约 13 年前
Go has a low adoption rate compared to Java among developers. Go can be the best language in the world, but until there is enough developers using it, it will be a huge gamble by Google. Also this would cause a huge distraction and it would surly put them further behind IOS.
zoowar大约 13 年前
I would love to see this happen, but I think its more likely the dart vm will replace the java vm.
lucian1900大约 13 年前
With some work, Go can already work with the NDK. The problem is that almost all the APIs are Java only. The only exceptions are things strictly necessary for writing games.
b0sk大约 13 年前
I thought this was a bit obvious.. whenever Go matures.
评论 #3977914 未加载
nextparadigms大约 13 年前
Could they use NaCl as the native platform for developing Android apps?
评论 #3977741 未加载