3 ms·
> Well, your portability for Windows and Linux is just from the JVM no? No, there is a native binary executable for Windows and a corresponding one for Linux.
by ptx 9y ago
> Well, your portability for Windows and Linux is just from the JVM no?
No, there is a native binary executable for Windows and a corresponding one for Linux. There is no Java embedded in or required by those, although separately (!) I also target Java, in addition to Windows and Linux. (I knew I should have used more parentheses in that post.)
> If you had to rewrite everything you were using Swing for, that's a lot of rewrite.
Yeah, but there is no Swing on the web, so what can you do? We used to have Swing, in the form of applets, and it was horrible. If you want something to work well on the web, you have to write it for the web. (But you can write it in Kotlin!)
Again, there is no Java when you target JS. Instead you can use any JS API and any JS library. The Kotlin standard library provides some basic data structures, math functions, etc. No Java.
> if they add native WxWidget and say QT to Kotlin native, it would slowly tend towards what Haxe has going.
wxWidgets and Qt happen to be in C++, which is difficult to use from other languages, but you can use any C-based library from Kotlin/Native, such as GTK+ or the native Win32 API.