2 ms·
Actually Kotlin has a native compiler and (and a js compiler) and I'm not advertising the JVM variant here. The native compiler is also able to target WASM. WAS
by jillesvangurp 8y ago
Actually Kotlin has a native compiler and (and a js compiler) and I'm not advertising the JVM variant here. The native compiler is also able to target WASM. WASM of course still lacks a garbage collector, which is currently holding back Kotlin (and other languages) there. I believe Google is involved in fixing that. On native they bundle their own garbage collector. I imagine MS is bundling one with Blazor in WASM. As soon as WASM matures (GC, threads, and a few other things) that becomes an obvious path for Flutter as well. Now would be a good time to start working on that. E.g. MS is doing very similar things with C# and Blazor as you are doing with flutter. Except they are doing this with WASM and llvm (check their .net 5.0 announcements a few days ago). I think this is the future proof path for Flutter as well and I question the need for Dart or a separate runtime. IMHO a LLVM based toolchain like on IOS needs to be the default on Android/ChromeOS as well. Something like Flutter paired with Kotlin or Swift could work really well.
I've actually heard of flutter projects doing the business logic in Kotlin and cross compiling that as a library to IOS and Android. The main reason the team cited is that they thought Dart was simply to limited for what they needed; from their point of view it was a necessary evil. It's great that you are trying to fix that. IMHO Typescript and Kotlin are worlds apart (I use both). Typescript is much more limited and way more quirky to deal with.