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

spierce7

05/13/2022, 4:00 AM
At Google IO in the dev keynote, they briefly mentioned and showed Java running in web assembly? I’m curious if anyone knows anything about that. It also didn’t seem like some weird bytecode to wasm transpile. They gave zero information about it and I can’t find anything from searches online. It’d be really interesting if we could run Kotlin JVM on wasm in the future. Does anyone know anything?

https://youtu.be/qBkyU1TJKDg?t=1652

j

jw

05/13/2022, 12:19 PM
I assume they mean TeaVM or the other transpilers of bytecode
b

bashor

05/13/2022, 9:20 PM
I guess it’s Java code compiled using j2cl and it using GC proposal which is under development
s

spierce7

05/14/2022, 4:18 PM
oh wow! Thanks for the insight Zalim!
s

sdeleuze

06/13/2022, 10:05 AM
You can find a Java sample compiling to Wasm + GC with J2CL here: https://twitter.com/sdeleuze/status/1536288226138284032
s

spierce7

06/13/2022, 3:13 PM
Really interesting! I wonder if it’s actually viable to ship java via wasm in a browser or if it just ends up being way too big.
3 Views