News for hackers. Stuff that matters.
Re:Scala 2.12.0-RC1 released by adriaanm on Wednesday September 07, 2016 @04:20AM (#12441622)
Keen eye! The release is tagged and the artifacts are indeed on maven central, but we are holding the official announcement for a few days to be able to launch with a nice set of community libraries already published. So much for flying under the radar :-)
Re:Scala 2.12.0-RC1 released by walkingolof on Wednesday September 07, 2016 @04:31AM (#12441655)
Re:Scala 2.12.0-RC1 released by virtualwhys on Wednesday September 07, 2016 @07:22AM (#12442349)
Great.

What's the status on performance slowdown wrt to relying on Java 8 default methods in 2.12[1]? Hopefully this is not a JVM limitation[2] and can be sorted out during the RC cycle.

Fewer generated class files and improved performance would very much be a nice-to-have.

[1] http://www.scala-lang.org/blog/2016/07/08/trait-method-perfo...

[2] https://bugs.openjdk.java.net/browse/JDK-8161334

Re:Scala 2.12.0-RC1 released by PartOSolution25 on Wednesday September 07, 2016 @02:37PM (#12445862)
The blog entry doesn't mention the impact of that performance regression on Scala 3 (aka Dotty).
Re:Scala 2.12.0-RC1 released by virtualwhys on Wednesday September 07, 2016 @08:35PM (#12449281)
Sure, but Dotty is like hindsight, (arriving the year) 2020.

Regardless, there's a significant performance regression to sort out prior to the 2.12 GA. If it is a JVM limitation it won't be solved until at least Java 9 (according to the fix version listed in the bug report), which will mean 2.12 loses one of the stated goals of the release: reduction in number of generated class files (with perhaps slightly faster build times).

Anyway, we'll see in the coming weeks/months if a resolution or workaround manifests.

Re:Scala 2.12.0-RC1 released by wiradikusuma on Wednesday September 07, 2016 @04:13AM (#12441593)
too bad they require JDK8 while App Engine supports only JDK7 :(
Re:Scala 2.12.0-RC1 released by adriaanm on Wednesday September 07, 2016 @04:22AM (#12441626)
True Scala 2.12 generates byte code that requires a Java 8 VM. Scala 2.11 will be supported for a while longer, with as many as the 2.12 features implemented there first (those that don't require Java 8).
Re:Scala 2.12.0-RC1 released by melling on Wednesday September 07, 2016 @07:40AM (#12442461)
Java 8 was released almost 2.5 years ago. How long should they have to wait before they can use it? Java 9 was originally suppose to be released about now.
Re:Scala 2.12.0-RC1 released by pas on Wednesday September 07, 2016 @04:18AM (#12441614)
What does this mean?

They probably require JDK8 for compiling/building the class files, but can you target 1.7?

See target flag for javac ( http://stackoverflow.com/a/21206909 )

Re:Scala 2.12.0-RC1 released by pjmlp on Wednesday September 07, 2016 @05:30AM (#12441877)
You can only make use of the target flag when not making use of new bytecodes oder APIs introduced in a specific Java version.

Scala 2.12 is replacing some of their own code with Java 8 new features, so they rely on a Java 8 compatible JVM.

This will also prevent Scala 2.12 to target Android, because even Android N isn't 100% Java 8 compatible, specially the low level JVM features like invokedynamic and method handles are not supported on DEX format.

Re:Scala 2.12.0-RC1 released by Nullabillity on Wednesday September 07, 2016 @04:27AM (#12441640)
AFAIK no, 2.12 does a lot to be compatible with equivalent native features of JVM 8. The way to target JVM 7 bytecode is to stick with Scala 2.11.
Re:Scala 2.12.0-RC1 released by cel1ne on Wednesday September 07, 2016 @04:16AM (#12441610)
Try https://kotlinlang.org/.

It works with JDK 6+.

Re:Scala 2.12.0-RC1 released by justinhj on Wednesday September 07, 2016 @05:58AM (#12441998)
Scala 2.11 also supports 6
Re:Scala 2.12.0-RC1 released by pedrorijo91 on Wednesday September 07, 2016 @04:28AM (#12441644)
doesn't the Flexible Environment fit for you? https://cloud.google.com/appengine/docs
Re:Scala 2.12.0-RC1 released by wiradikusuma on Wednesday September 07, 2016 @05:09AM (#12441783)
i haven't explored it, but from cursory look it's more "work" (and more expensive) than the one that comes out-of-the-box