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

andylamax

12/09/2023, 9:47 AM
What is the equivalent of
kotlin.native.concurrent.Worker
or
Thread
for
kotlin/wasi
in the
kotlin-stdlib
?? Do we have any??
s

Svyatoslav Kuzmich [JB]

12/09/2023, 9:52 AM
Kotlin/Wasm is single threaded. Threads could be added in the future. They would need: • Core WebAssembly proposal https://github.com/WebAssembly/shared-everything-threads. • WASI proposal https://github.com/WebAssembly/wasi-threads Both are now in a very early stage.
a

andylamax

12/09/2023, 9:55 AM
I see. So, is there any equivalent of
Promise/Deffered/CompletableFuture
in
Kotlin/Wasm - wasi
(not Kotlin/Wasm - wasmJs)??
s

Svyatoslav Kuzmich [JB]

12/09/2023, 9:58 AM
There will be
stream
and
future
in WASI Preview 3. See this great presentation with a lot of tech details.
👍 1
a

andylamax

12/09/2023, 10:01 AM
Thank you so much
7 Views