Is it possible to use Kotlin for both the server- and client-side of a Google Web Toolkit app?
I did a quick test and the server side was easy. But I could not get it to work on the client-side.Anyone had any luck with that?
Thanks for the answer.
I didn't quite understand if Kotlin could produce Java source files as well as byte code.
Would be great if it could produce Java source files, then it should be possible to use in GWT.
Xtend do it. It compiles Java source from xtend sources. Maybe it is what your are searching for. http://www.eclipse.org/xtend/ (I'm using it in some of my projects.)
Another possible solution is TeaVM. It compiles java bytecode to js, so it can be used to compile Java/Kotlin mixed apps. http://teavm.org/ (I haven't used it, but you can take a try.)
Thanks for the info. I didn't know about TeaVM - looks interesting.
Now that Kotlin 1.2 is released, it can be compiled into JS and we can have shared code between server and browser like GWT.