7 ms·
I thought you didn't have to use the JVM with Scala. Not so?
by themodelplumber 3y ago
I thought you didn't have to use the JVM with Scala. Not so?
- SOLAR_FIELDS 3y agoScala 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 3y 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 3y agoYou are right. See my other comment for some more details.
- paulddraper 3y 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 3y agoA language that just so happens to have built-in interoperability with Java.
- sjrd 3y 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 3y agoYes. Given Java's goal is "write once, run everywhere"...that's not a bad thing.
- kagakuninja 3y agoTo be fair, Scala.js is a relatively new project, and I had avoided it for a while due to library compatibility issues and stability concerns. It now seems pretty freaking awesome. There is a concerted effort in the Scala community to break the dependency on the JVM, via Scala.js and Scala Native. This however requires porting the Java standard library to each platform.
- AlexITC 3y ago> To be fair, Scala.js is a relatively new project I don't know if you are aware, a few months ago, Scala.js turned 10 years old: https://www.scala-lang.org/blog-detail/2023/02/05/ten-years-of-scala-js.html https://www.scala-lang.org/blog-detail/2023/02/05/ten-years-...
- raincole 3y ago10 years old is new tho. I'm not being sarcastic. See how old Unity and Unreal are. Most gamedev still consider Godot new. Godot is 9 years old.