DEV Community

Discussion on: Should I learn Java?

Collapse
 
misobelica profile image
Mišo

Learn Kotlin instead then. It's better than Java and you can run it in the browser just fine ☺️ And you can even mix it with Java if you really have to to.

Thread Thread
 
adam_cyclones profile image
Adam Crockett 🌀

I'm am interested in kotlin for a few reasons come to think of it. Im comfortable in typescript which has a similar syntax. Kotlin upon last inspection had a js transpiler, what I'm hoping it can do now is compile to webassembly. Let the reaserch begin.

Thread Thread
 
adam_cyclones profile image
Adam Crockett 🌀

Kotlins native compiler is based on llvm so that's a green light. 🥦

Thread Thread
 
misobelica profile image
Mišo

Yep, Kotlin can transpile to JS or WASM, can run on mobile and native. And when you start counting with graalvm.org/ the interoperation with other languages (Python, C, JS, ...) through Truffle gives you real superpowers. They are edge tech. now but I believe it's worth exploring. You can always fallback to just Kotlin on backend and mobile where is it pretty mature.