Can we have a good Lisp for Android already?
Google, it's time – We want Scala for Android
31–40 of 148 posts
Re: Google, it's time – We want Scala for Android
#32Can we have a good Lisp for Android already?
Re: Google, it's time – We want Scala for Android
#33Please not scala! I prefer to have clojure for android. Scala is too complex, to ugly, and tries todo too much. Its also to heavy for android (it needs tons of libs to run).
Re: Google, it's time – We want Scala for Android
#34I would be happy with Java 7/8.
Re: Google, it's time – We want Scala for Android
#35My bet is for golang.
Current design of Android makes any non-JVM language a rather illogical and problematic choice. Writing JNI bridges for everything and reboxing costs would be prohibitive.
In theory, they could make ART allow for both the Java code and the Go code to work on Android, no? So we could have Google push new app development to Go, while they deprecate Java over the next 5 years (after Go support is out).
But to get developers to write Go, they also need a significant market share of Android L/ART-enabled devices, like over 50 percent, which will take 2-3 years to arrive there anyway. They can use this time gap to port Android APIs to Go, and when ART is on 50-70 percent of the devices, announce that developers can now write Android apps in Go, too (for Android L+ only).
They could announce it at the release of Android N (the one after M). By then Go 2.0 will probably be out, too, so they can support 2.0 on Android from the beginning, especially if they plan Go 2.0 to have some pretty major incompatibilities with 1.x. In the meantime, the Go team could also work on some "made for Android" features for Go 2.0, to make Go more optimized for Android. By then, they'd probably only have to support ARMv8, too (preferable, I think). So they can target only 64-bit ARMv8 hardware with Go (from what I hear Go works better with 64-bit hardware anyway).
I think Google can do this. They just need to plan it out. Three years is probably a reasonable time period for this.
Re: Google, it's time – We want Scala for Android
#36Why not Kotlin? It's more like a modernized Java. It's closer to what Android developers are used to and it already supports Android. It interoperates well with existing Java code in your Android app. Also, it has excellent IDE support, since JetBrains is behind it. http://kotlinlang.org/
Re: Google, it's time – We want Scala for Android
#37At a guess, I'd say that with Java 8+ they'd have to fix that. Probably why they said "no comment" as pjmlp pointed out (https://news.ycombinator.com/item?id=8192614).
Re: Google, it's time – We want Scala for Android
#38I agree that Google should add more languages to android. And while Scala is a great language, it's very complex - so it won't benefit many of the less skilled users. A better language would be something with the simplicity and power of python, but with good performance.Groovy could be one such language.
(Of course you can do more complex things in Scala, taking advantage of the powerful type system. But you don't have to if you don't want to)
Re: Google, it's time – We want Scala for Android
#39Re: Google, it's time – We want Scala for Android
#40It's on compile time and not at run time. It injects release/retain calls between acquiring ownership and relinquishing ownership.
I could be wrong but I don't think they added GC to Swift, as Objective-C (at least not on Mac OS) doesn't have it.
EDIT: They got rid of the GC on Mac OS as well. They use ARC there as well just like iOS.