3 ms·
I think it makes very much sense for Google to start pushing Kotlin. It runs on JVMs. It is compiled. It's a simple language to migrate to for Java developers,
by danieldk 12y ago
I think it makes very much sense for Google to start pushing Kotlin. It runs on JVMs. It is compiled. It's a simple language to migrate to for Java developers, but provides more convenience than Java 8. It does not have the impedance mismatch with Java that some of the other new JVM languages have. Moreover, it's well-supported by IntelliJ and consequently by Android studio.
- Jare 12y agoThat would be neat and a very pragmatic choice, but I'm not sure that Kotlin provides enough of an advantage over Java to make migrating worth for a significant amount of Android developers. Scala goes a step or two further, but the overhead (cognitive and at runtime) are a problem too.
- frowaway001 12y agoAgree. Kotlin is pretty much Java 8 with Scala syntax. It's neat, but mostly useless. If Google wanted to stay conservative, they could just support Java 8, but if they wanted something considerably superior ... well, Kotlin is not participating here. But hey, Google sucks so much at programming languages (see Go and Dart) that I don't expect that they do anything that makes sense for developers.
- danieldk 12y agoAgree. Kotlin is pretty much Java 8 with Scala syntax. It's neat, but mostly useless. It does contain many features people have been asking for in Java for years, but that Java 8 does not provide, such as: properties, mixins, type inference, pattern matching, operator overloading, etc. Also, I assume that JetBrains would be open to other features that Google would like in a Java-replacement. At any rate, all JVM languages, including Scala are going to be limited by the VM and bytecode. So, you'll have to live with type erasure, without your own value types, etc.
- frowaway001 12y ago> Also, I assume that JetBrains would be open to other features > that Google would like in a Java-replacement. I could totally understand that, it would probably their last and only chance to get some users. I don't want to sound harsh, but their situations must be quite dire right now. The language is still stuck in some 0.x-land (unlike Ceylon), Java 8 shipped with most of their features already, they are unable to compete with better languages (like Scala) and the tooling and IDE situation looks pretty bad, too. > At any rate, all JVM languages, including Scala are going to be > limited by the VM and bytecode. So, you'll have to live with type > erasure, without your own value types, etc. Because having a VM with value types and working Generics is such an impossible feat that no one managed to implement it? I guess not. No one is preventing them from supporting a superset of the class file format which allows value types and better Generics.
- chwahoo 12y agoI'm surprised you were downvoted. I think this suggestion makes a ton of sense. It's certainly the shortest path to having a significantly improved first-party language for Android and Google does have a working relationship with Jetbrains. I think it's very unlikely that this is in the works since, if it were, you'd expect Google to have thrown significant weight towards kotlin development (https://github.com/JetBrains/kotlin/graphs/contributors https://github.com/JetBrains/kotlin/graphs/contributors).