5 ms·
> I really hope something like Java, or even better Kotlin, will replace Javascript ... Have you tried Kotlin's javascript backend? https://kotlinlang.org/doc
by nalllar 9y ago
> I really hope something like Java, or even better Kotlin, will replace Javascript ...
Have you tried Kotlin's javascript backend?
https://kotlinlang.org/docs/reference/js-overview.html https://kotlinlang.org/docs/reference/js-overview.html
- jansan 9y agoThose things are nice, but how would I work with third party libraries like Paper.js? I feel that the difficulties would outnumber the benefits in my case.
- nalllar 9y agoIf it's in typescript or has type definitions available you can convert those type definitions with ts2kt. Failing that, you can use the dynamic type. ts2kt - https://github.com/kotlin/ts2kt https://github.com/kotlin/ts2kt type definitions for many libraries - http://definitelytyped.org/ http://definitelytyped.org/ dynamic type - https://kotlinlang.org/docs/reference/dynamic-type.html https://kotlinlang.org/docs/reference/dynamic-type.html
- virtualwhys 9y ago> Have you tried Kotlin's javascript backend? Generates large js binaries, poor js interop; it's well behind the curve compared to Scala.js and Clojurescript on the JVM. Think they're putting all their developer eggs into the Native basket, which makes sense, iOS + Android would be huge for the language's adoption.
- swsieber 9y agoThe teams are different - the native team has a distinctly different team than the one working on JS. I'm not sure what the overlap between the JVM and JS team is though. I'd say quite simply that the JS target is just still quite young.