That's just an SBT build for the PlayN Java code. It doesn't actually
involve any Scala (other than the Scala used to control SBT).
Using PlayN with Scala is fine as long as you're willing to give up
the HTML5 (and non-functional Flash) backend(s). The JVM, Android and
iOS backends deploy to targets via Java bytecode, not Java source
code, so they don't care or notice if the bytecodes from from the
Scala compiler rather than the Java compiler.
There are pitfalls that one easily encounters when using Scala on
Android (particularly Scala 2.9+), generally due to Scala being
profligate with class and interface generation and Android not
expecting such profligacy, so don't assume that Scala+PlayN will be a
walk in the park.
I should also mention that if you have a very high tolerance for
bleedy edges, there is the Scala+GWT project
(https://github.com/scalagwt) which pretty much has Scala compilable
via GWT. But it's extremely alpha, and unless you're a Scala compiler
hacker, you're probably going to run into inscrutable rough edges.
AFAIK not a lot of work has been done to specifically improve
performance on Dalvik. A few changes have been made to reduce the
classfile explosion that often accompanies Scala code, which helps
when targeting Dalvik, but other than that I don't know of any direct
efforts along those lines.
There have been discussions on the Scala mailing list in the last few
months where some people say they're happily using Scala on Android
and others say that the 2.9 series is completely unusable (mostly due
to classfile size, not speed). One would have to try for themselves to
determine their own opinion.
Anyone tried this more recently than was last mentioned here?Seems their demos have come a long way, and they support something called Jribble which makes it sound like scala+gwt will support java as well?
I'm only marginally asking about this in a PlayN context.. but more from a general webapp... Also given there are solutions like Robovm and Emscripten that may be a better route to achieve the same thing?
I'm only marginally asking about this in a PlayN context.. but more from a general webapp... Also given there are solutions like Robovm and Emscripten that may be a better route to achieve the same thing?
There's a new, much simpler, project for compiling Scala to JavaScript, which has made great progress in the last six months or so: http://www.scala-js.org/If you want to do web stuff in Scala, that's the way to go.