https://kotlinlang.org logo
#webassembly
Title
# webassembly
s

Svyatoslav Kuzmich [JB]

08/26/2019, 2:55 PM
We started to experiment with a dedicated Kotlin to WebAssembly compiler backend. It supposed to generate code directly without LLVM. We are looking to target upcoming versions of Wasm with garbage collector and other post-MVP features.
🎉 2
K 18
metal 4
👍 24
💣 1
🙏 14
😮 8
s

sdeleuze

08/26/2019, 4:10 PM
Awesome, please keep us informed!
8
d

darkmoon_uk

08/27/2019, 1:05 AM
Faith in [JB] confirmed! Lead us into the type-safe future of browser as another client development 🌅. This could be huge! 🎉
t

Tristan Caron

08/27/2019, 12:56 PM
I supposed thanks to this effort we will be able to have full support for coroutines in the browser?
b

bashor

08/27/2019, 1:12 PM
@Tristan Caron there is Kotlin/JS with the full support for coroutines everywhere where you can run JS 😉
d

darkmoon_uk

08/27/2019, 1:15 PM
Yeah, but JS...
t

Tristan Caron

08/27/2019, 1:19 PM
@bashor I thought it wasn’t supporting multithreading, sorry 😅
b

bashor

08/27/2019, 1:20 PM
you can write in Kotlin, why it’s problem where it’s ran?
@Tristan Caron JS dosn’t support multithreading, but coroutines about asynchronicity than about multithreading. BTW browsers and node.js have a concpt of workers, it’s kind of threads message passing instead of sharing memory.
t

Tristan Caron

08/27/2019, 1:27 PM
JS doesn’t support multithreading, yes. But WebAssembly does. I though targeting WASM and using Coroutine would lead to the possibility to use multithreading, easily.
metal 1
s

sksk

08/27/2019, 2:18 PM
this is awesome news!
s

Sergey Rubanov

09/08/2019, 6:19 PM
@Tristan Caron in browsers wasm reuses SharedArrayBuffer logic from JS engines. So wasm will get multithreading support as soon as JS will get SAB (enabled in Chrome, in progress in Firefox)
t

Tristan Caron

09/08/2019, 9:11 PM
@Sergey Rubanov thanks for the details
2 Views