And speaking of back ends, I'd love for Kotlin to support a fourth one: Web Assembly. Rust just added support for it and a "Hello world" program is around 200 bytes (!). Much better than going through Javascript
➕ 1
g
gildor
11/27/2017, 7:59 AM
But Web Assembly preview already part of Kotlin/Native.
Or are you talking about generating webassembly binaries directly, without llvm? Does it really make sense?
o
orangy
11/27/2017, 8:17 AM
Indeed, wasm is already there for quite some time. Spinner demo includes an example.
g
gildor
11/27/2017, 8:27 AM
I meant “does it make any sense to generate wasm binaries directly (new Kotlin backend) instead of LLVM and convert them to wasm then how it implemented already in K/N?”
o
orangy
11/27/2017, 8:57 AM
Does it have any advantage to do it manually if LLVM can do it and we have LLVM backend?