Live data from Hacker News

Kotlin, the Swift of Android

blog.gouline.net

1–10 of 114 posts

Re: Kotlin, the Swift of Android

#2
Kotlin looks like a very nice addition to Android ecosystem. It meshes pretty seamlessly with Java and takes a few of the obvious syntactic pains away.

I think as the Android build system improves using other languages will become more common.

Re: Kotlin, the Swift of Android

#5
You can write shared functionality in pure Ruby using RubyMotion then write your view layers for iOS and Android and have them each compiled correctly to native apps for each platform.

I'd rather use Ruby than Swift or Kotlin.

Re: Kotlin, the Swift of Android

#6
post #3

Scala for Android, https://news.ycombinator.com/item?id=8192406

I gave up trying to set it up for Android. It just sucks, and there is nothing but random blog entries on how to get it done. If someone pointed me to reliable resources on how to get it to work, I'd appreciate it very much (as I like the language itself)

Re: Kotlin, the Swift of Android

#7
I have been fiddling with Kotlin for last few days. It is trivial to get it working in Android Studio, which is a plus already. It's not nearly as verbose as Java, and for one thing, it gives me LINQ that I've been missing from C#.

Re: Kotlin, the Swift of Android

#8

Just a side question, the author mentions method count as a downside of introducing alternate JVM languages. Does the method could slowdown/bloat apps somehow?

No, but older Android versions have a maximum 64000 method limit. I think it has been fixed for later versions, but I am really not sure. There have been some blog posts about Facebook's (controversial) attempts to work around this limit: https://www.facebook.com/notes/facebook-engineering/under-th...

Re: Kotlin, the Swift of Android

#9

Just a side question, the author mentions method count as a downside of introducing alternate JVM languages. Does the method could slowdown/bloat apps somehow?

It's way more fucked up than that, Dalvik is limited to 65k invocable methods per dex file: https://medium.com/@rotxed/dex-skys-the-limit-no-65k-methods...

> You can reference a very large number of methods in a DEX file, but you can only invoke the first 65536, because that’s all the room you have in the method invocation instruction.

> […] the limitation is on the number of methods referenced, not the number of methods defined. If your DEX file has only a few methods, but together they call 70,000 different externally-defined methods, you’re going to exceed the limit.

Post reply on HN