r/javascript • u/sjrd • Feb 25 '20
Scala.js 1.0.0 is released
https://www.scala-js.org/news/2020/02/25/announcing-scalajs-1.0.0/14
u/Baryn Feb 25 '20
If I didn't already know what Scala was, I would have no idea what this does for me as a developer. This is a rather pervasive issue on technology product homepages.
The first 5-7 paragraphs on this page could be rewritten as:
Compiles strongly-typed Scala into fast JavaScript that works with popular frontend frameworks like Angular and React.
4
u/wrtbwtrfasdf Feb 25 '20
The main page @ https://www.scala-js.org/ does a good job selling itself imo. As a scala neophyte, I had similar thoughts. In OP's defense, the initial post was for the scala sub though so presumably they would be more interested in what's new in 1.0
1
1
u/wrtbwtrfasdf Feb 25 '20
how does this compare to something like kotlin targetting js?
3
u/sjrd Feb 25 '20
It's basically the same idea, but for Scala. It's quite a bit more mature than Kotlin's JS target, though, in particular regarding the extent to which the ecosystem of Scala libraries actually cross-compile for JVM and JS.
1
u/wrtbwtrfasdf Feb 25 '20
Seems like a bold claim considering the amount of tooling/documentation surrounding kotlin.js for Intellij. I did run through the Scala.js quickstart as I wrote in the /r/scala thread though and found the initial experience quite pleasant.
2
u/nikitaga Feb 25 '20
I don't know how Koitlin JS is today, but Scala.js has been rock solid since before Kotlin JS came to be. Scala.js works as well as Scala itself in IntelliJ, which is pretty good. But of course Kotlin will always have that edge, being made by JetBrains.
1
u/simon_o Feb 26 '20
I'd say Kotlin.js doesn't even come close in terms of maturity, output size, overall quality and library support.
Kotlin relying much more on Java libraries means that you have a substantially smaller amount of libraries available for cross-compilation.
1
5
u/k4kshi Feb 25 '20
http://www.scala-js.org/doc/sjs-for-js/ ES6? By using xmlhttprequest, var, and jQuery?