3 ms·
> Since Java has always been strongly typed and has a ton of libraries available Means nothing for alt-Java languages' JS target. While the host language gets
by virtualwhys 9y ago
> Since Java has always been strongly typed and has a ton of libraries available
Means nothing for alt-Java languages' JS target. While the host language gets the Java ecosystem for free, to replicate on the client every Java library needs to be cross compiled.
It's a non-trivial endeavor, one that ClojureScript and Scala.Js can largely avoid due to their already having a rich set of cross compiled frameworks and libraries in their respective ecosystems.
Not sure what the story is with Kotlin here, seems pretty tightly coupled to Java.
- slackingoff2017 9y agoThe Java classpath (built in API) will be an issue possibly. It's easy to compile third party libraries statically with your app. Just build a fatjar with maven shade and strip it with progaurd. You application will be only the Java runtime and code you're actually calling. I've tested this with Java console apps and it makes them very small. I'm guessing you could get your app size under 50kb