https://kotlinlang.org logo
Title
c

caelum19

02/08/2017, 11:18 PM
what would be the best way to have Kotlin 'compiled'(or interpreted, if possible?) on a website? I see https://github.com/JetBrains/kotlin-web-demo uses Tomcat and I would rather not have to compile it for all clients, but I guess it would be fine if nothing else is possible
b

bashor

02/20/2017, 12:56 PM
caelum19: what exactly do you want to achieve? For example: 1) write your frontend in Kotlin; 2) use kotlin as scripting language;
c

caelum19

02/20/2017, 5:13 PM
@bashor I want to show off my kotlin snippets and be able to run/modify them on the site 🙂
b

bashor

03/06/2017, 6:38 PM
well, probably it’s hard to do anything best than kotlin-web-demo now.
We thinking about running somehow Kotlin JS compiler in the browser, but it’s not simple now
c

caelum19

03/12/2017, 4:59 PM
Ah, I guess that would mean compiling the JS compiler with itself and modifying it not to use non-kotlin libs? Thanks for your response anyway
b

bashor

03/13/2017, 6:29 PM
Ah, I guess that would mean compiling the JS compiler with itself and modifying it not to use non-kotlin libs?
Yes, it’s final solution that we want to have. But for the near future, we can try to convert JVM BC to JS