News for hackers. Stuff that matters.
Re:Scala.js no longer experimental by tootie on Thursday February 05, 2015 @08:58AM (#9003225)
Am I correct in my inference that Scala in the browser cannot import Java classes? Meaning this isn't some backdoor to a Java-to-JavaScript compiler?
Re:Scala.js no longer experimental by sjrd on Thursday February 05, 2015 @09:15AM (#9003309)
You are correct. Scala.js compiles Scala code to JS, not bytecode. A number of core Java classes have been ported to Scala.js so they can be used anyway, though. (see http://lihaoyi.github.io/hands-on-scala-js/#JavaAPIs for a mostly exhaustive list so far)
Re:Scala.js no longer experimental by bad_user on Thursday February 05, 2015 @04:19PM (#9006183)
To add to what @sjrd said, while you cannot import Java classes, porting Java code to Scala.js is way easier than porting to Javascript ;-)