Hacker News new | past | comments | ask | show | jobs | submit login

I know that a killer feature for Kotlin is that you can use the same code to compile to JS, JVM and Native. Is it actually feasible in practice? Can I make a game that will compile to JS, JVM and Native all with the same code? I assume the core logic would be shared and I'd have to implement platform-specific routines for things like drawing and input, but would this actually work?



Only if all the libraries you use aren't JVM specific. In this case, the developer is using wrapper for a Java library so I doubt it's possible.

There's no reason the wrapper couldn't be enhanced to use the Java library on the JVM and something else on native but it would probably be a lot of work.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: