3 ms·
> Scala and Kotlin both have projects for AOT compilation to native code Not sure about Kotlin (stable version of the language was only recently released; more
by virtualwhys 10y ago
> Scala and Kotlin both have projects for AOT compilation to native code
Not sure about Kotlin (stable version of the language was only recently released; more likely a stable JS target is higher on the priority list), but Scala Native isn't production ready, will likely be at least a year from now; same goes for Scala Meta, and Dotty's even further out, minimum 2 years away.
Swift has a head start here, and a huge captive audience in legions of iOS developers -- unlikely that Scala will be able to compete on the native front directly. More likely Scala.js + React Native may draw some from the JS developer pool that want to take advantage of static types and seamless client-server interop that can be had via Scala/Scala.js today.
- pjmlp 10y agoYou missed the part that AOT native compilers for JVM languages already exist today, but I accept that people don't want to pay for them.
- virtualwhys 10y agoSure, was just pointing out that no such native ports exist for Scala or Kotlin that are anywhere near production ready. In fact, it appears that a Kotlin Native project exists in the sense that a blog post exists that announced a native target is something they're looking into implementing down the road -- hardly a project ;-) Scala Native's been under heavy development for over a year now[1], and even then it's a long way off. [1] https://github.com/scala-native/scala-native/graphs/contributors https://github.com/scala-native/scala-native/graphs/contribu...