4 ms·
Scala is a JVM language. If it’s Scala.js, as referenced in a sibling comment, it’s still Scala being cross compiled. Therefore it’s still JVM at the source
by SOLAR_FIELDS 4y ago
Scala is a JVM language. If it’s Scala.js, as referenced in a sibling comment, it’s still Scala being cross compiled. Therefore it’s still JVM at the source
- klysm 4y agoI’m not sure this is true, it’s JVM if you are running JVM bytecode. I don’t think scalajs executes on the jvm
- sjrd 4y agoYou are right. See my other comment for some more details.
- paulddraper 4y ago> Therefore it’s still JVM at the source Wat. No. Scala is a language. It has compilers for Java bytecode, JavaScript, and native.
- ummonk 4y agoA language that just so happens to have built-in interoperability with Java.
- sjrd 4y agoThe JVM flavor of Scala has built-in interoperability with Java. Scala.js has built-in interoperability with JavaScript instead. And Scala Native has built-in interoperability with C.
- paulddraper 4y agoYes. Given Java's goal is "write once, run everywhere"...that's not a bad thing.