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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Android now supports Kotlin

620 点作者 JOfferijns大约 8 年前

36 条评论

tomc1985大约 8 年前
Funny, I was messing around with Kotlin for the first time last night. So far, the language seems well-structured and I really like that one gets all of Java&#x27;s ecosystem without actually having to write java. (Also, &quot;override fun&quot; just sounds hilarious. Bwaha!)<p>Throw in TornadoFX and Gluon Scene Builder (formerly of Oracle) and you&#x27;re spinning up high-quality cross-platform GUIs faster than Atom, with a visual editor, and without having to touch Javascript!<p>I&#x27;ve been trying to find a suitable, high-quality cross-platform GUI kit for a while and this looks like it might challenge my current favorite (GTK)
评论 #14362738 未加载
评论 #14370604 未加载
评论 #14361665 未加载
评论 #14361675 未加载
评论 #14362075 未加载
Ciantic大约 8 年前
Post in JetBrains&#x2F;Kotlin blog:<p><a href="https:&#x2F;&#x2F;blog.jetbrains.com&#x2F;kotlin&#x2F;2017&#x2F;05&#x2F;kotlin-on-android-now-official&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.jetbrains.com&#x2F;kotlin&#x2F;2017&#x2F;05&#x2F;kotlin-on-android-...</a>
评论 #14362333 未加载
geodel大约 8 年前
Well this looks like going to push Kotlin in big league. I remember scala enthusiasts made big noise in last few years to have scala as officially supported language. But Google seems to prefer a closer relationship with Jetbrains.
评论 #14362926 未加载
评论 #14361736 未加载
评论 #14361744 未加载
评论 #14362116 未加载
评论 #14363030 未加载
matsemann大约 8 年前
What does it mean being &quot;supported&quot;, given that one already can use Kotlin on Android?
评论 #14362287 未加载
评论 #14362617 未加载
评论 #14362228 未加载
评论 #14363160 未加载
评论 #14362261 未加载
dep_b大约 8 年前
Good move. Out with possible null pointers everywhere for no freaking reason at all. It&#x27;s 2017.<p>Apple did a great job with Swift but launched it when it wasn&#x27;t mature yet but Kotlin will have JetBrains level of IDE support from the get go so and it&#x27;s mature already only a luddite would stay with Java.
评论 #14362178 未加载
评论 #14364279 未加载
mangoman大约 8 年前
This is pretty big. I really like Kotlin, but when I tried to integrate it into my app, it just didn&#x27;t play well with popular libraries which rely on compile time code generation (Google&#x27;s Dagger fork, Icepick, Parcels, etc). Has support for this improved &#x2F; is it easy to integrate?
评论 #14362931 未加载
评论 #14363046 未加载
评论 #14363329 未加载
maxpert大约 8 年前
Finally!!! JetBrains has been doing an awesome job on Kotlin. Languages is a very subjective and taste specific thing, but it&#x27;s way better than just having Java. Anyhow I have been arguing over moving to it for quite some time now here is a shameless plug <a href="https:&#x2F;&#x2F;hackernoon.com&#x2F;in-pursuit-of-better-jvm-futures-kotlin-coroutines-281a79211b09" rel="nofollow">https:&#x2F;&#x2F;hackernoon.com&#x2F;in-pursuit-of-better-jvm-futures-kotl...</a>
jorgemf大约 8 年前
If you have used kotlin, it seems the obvious move. I am not coming back to java, unless completely necessary. Kotlin is a great language (and more fun!).
评论 #14361872 未加载
评论 #14365999 未加载
sswezey大约 8 年前
This, along with recent Kotlin Native news, lends me to believe Google is investigating some alternative platforms for replacing their dependence on Java APIs and removing any possibility of being further hamstrung by Oracle.
评论 #14362275 未加载
评论 #14371558 未加载
narrator大约 8 年前
Oracle winds up killing another golden goose they aquired from Sun. That&#x27;s what they do though. They buy innovative technology companies who have committed customer bases and then slowly squeeze all the money out of them until they can migrate off. By then they&#x27;ve aquired another set of victim customers.
评论 #14362064 未加载
MBlume大约 8 年前
&quot;To get started with Kotlin, download the Android Studio 3.0 preview, open one of your existing Java files, and then choose “Convert Java File to Kotlin File” in the Code menu.&quot;<p>You do not have to install a preview version of Android Studio, you can install the kotlin plugin in whatever version of AS you&#x27;re using now. The change in AS 3.0 is simply that it will ship the plugin by default.
评论 #14365343 未加载
giarc大约 8 年前
Anyone know of good online tutorials for Kotlin? I learned Swift for iOS development and customers have been asking for an Android version of my app. Sounds like Kotlin would be a good second language to learn.
评论 #14363204 未加载
评论 #14363436 未加载
fishywang大约 8 年前
I hope this will change Jetbrain&#x27;s attitude towards supporting Kotlin Android rules in Bazel (or anything other than gradle). Last time I asked, they are not very interested[1].<p>[1] <a href="https:&#x2F;&#x2F;discuss.kotlinlang.org&#x2F;t&#x2F;android-support-in-kotlinc-cli&#x2F;2396" rel="nofollow">https:&#x2F;&#x2F;discuss.kotlinlang.org&#x2F;t&#x2F;android-support-in-kotlinc-...</a>
评论 #14362782 未加载
KingMob大约 8 年前
Would be lovely if they officially supported Clojure too.
评论 #14371621 未加载
评论 #14362126 未加载
评论 #14363321 未加载
评论 #14362139 未加载
评论 #14362495 未加载
amaks大约 8 年前
Steve Yegge had this to post about Kotlin:<p><a href="http:&#x2F;&#x2F;steve-yegge.blogspot.com&#x2F;2017&#x2F;05&#x2F;why-kotlin-is-better-than-whatever-dumb.html" rel="nofollow">http:&#x2F;&#x2F;steve-yegge.blogspot.com&#x2F;2017&#x2F;05&#x2F;why-kotlin-is-better...</a>
Entangled大约 8 年前
I love Kotlin and her twin sister Swift. They&#x27;re both beautiful and allow you to code apps for the desktop, server, mobile, watch, TV, IoT, and everything in between.<p>They&#x27;re here to stay and they&#x27;re a joy to use. Jump on the happy wagon and join us!
nathan_f77大约 8 年前
I&#x27;ve avoided writing React Native modules in Swift because I don&#x27;t want to add the Swift runtime. It would make my app a lot bigger, and while I love Swift, I&#x27;m fine writing a few lines of code in ObjC.<p>Will Kotlin add any extra data to an Android app? Does it have it&#x27;s own runtime, or does it just compile down to the same bytecode as Java?<p>If the app size is equivalent to Java, then this is amazing. I love Kotlin, and will write all of my React Native libraries in it (as soon as there is some support.)<p>UPDATE: Looks like the Kotlin runtime is around 859KB. Maybe smaller after ProGuard? In the grand scheme of things, that&#x27;s smaller than many web pages. But it&#x27;s probably not suitable for an open source library.<p>I don&#x27;t think Facebook would rewrite React Native in Kotlin. I&#x27;ve heard that they might be moving towards C++, so that more code can be shared between the different platforms.
评论 #14366440 未加载
bobsam大约 8 年前
Was hoping for golang but this is good too
评论 #14361629 未加载
评论 #14361626 未加载
czeidler大约 8 年前
Kotlin 1.1 supports coroutines what IHMO makes concurrency in a GUI much nicer. For example, it has C# like async&#x2F;await methods; but more flexible...
评论 #14365349 未加载
评论 #14364778 未加载
mncolinlee大约 8 年前
I should note that Kotlin now supports JDK, JS, iOS, and LLVM as backends. Gradle also announced support for Kotlin. This means you can write your Android app, iOS app, web browser app, desktop app, and your build scripts -- finally all in the same language.
评论 #14365076 未加载
评论 #14365953 未加载
hota_mazi大约 8 年前
The official tweet:<p><a href="https:&#x2F;&#x2F;twitter.com&#x2F;Android&#x2F;status&#x2F;864911929143197696" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;Android&#x2F;status&#x2F;864911929143197696</a>
monkmartinez大约 8 年前
So where is the best place to learn Kotlin?<p>I am very interested as Jetbrains is also working on Kotlin to native translation. [1]<p>[1]<a href="https:&#x2F;&#x2F;blog.jetbrains.com&#x2F;kotlin&#x2F;2017&#x2F;04&#x2F;kotlinnative-tech-preview-kotlin-without-a-vm" rel="nofollow">https:&#x2F;&#x2F;blog.jetbrains.com&#x2F;kotlin&#x2F;2017&#x2F;04&#x2F;kotlinnative-tech-...</a>
评论 #14361706 未加载
评论 #14361832 未加载
w8rbt大约 8 年前
I wonder if Android will ever support Go? Seems Google would want to do this.
评论 #14365572 未加载
评论 #14361981 未加载
评论 #14362004 未加载
rdsubhas大约 8 年前
I&#x27;m curious to know, just from a general understanding - How much of the situation changes when Java 9 releases? Will it lead to some features in Kotlin becoming redundant&#x2F;unnecessary, some other new features open up in Java 9, grass-is-greener situations, etc?
评论 #14363447 未加载
agumonkey大约 8 年前
Pretty big step up for kotlin. And for programming in general.
johnhattan大约 8 年前
I&#x27;m assuming that this is going to work natively via LLVM, as Kotlin&#x27;s original target was JVM bytecode, which should work fine on Android right now.
评论 #14361976 未加载
gigatexal大约 8 年前
hey maybe this means we will eventually be able to build apps in other languages to that target the JVM like Jython (or pure python would be cool).<p>Eh, I&#x27;m moving on from Python so if they never threw the ability to build apps for android with python that&#x27;d be fine, too.<p>Am I the only one that finds Java&#x27;s (and Java 8&#x27;s) syntax fine. I like the traditional type annotations and perceived verbosity.
dmix大约 8 年前
Google&#x2F;Android&#x27;s answer to Swift?
评论 #14362050 未加载
评论 #14366003 未加载
评论 #14361604 未加载
adrianlmm大约 8 年前
Congratulations to Jetbrains.
_sy_大约 8 年前
The Instamotor Android app is entirely built using Kotlin.
0xFFC大约 8 年前
After becoming first officially supported non java language in android now, All eyes are on kotlin native!<p>If they can deliver good kotlin native experience, then kotlin is unbeatable
skdotdan大约 8 年前
Will Google end up buying Jetbrains?
ktkization大约 8 年前
Where did Groovy go wrong ?
评论 #14365989 未加载
bitmapbrother大约 8 年前
Looks like Kotlin will soon be skyrocketing to the top of the TIOBE charts.
评论 #14361933 未加载
评论 #14361861 未加载
bedros大约 8 年前
why not use llvm as virtual machine instead of JVM assuming backward compatibility is not an issue.
评论 #14363483 未加载
0xFFC大约 8 年前
Is this official?<p>Edit: sorry, I completely forgot googleio is today, and i couldn&#x27;t believe this kind of news comminng ftom non google domain.
评论 #14361610 未加载
评论 #14361594 未加载
评论 #14361591 未加载