At Google IO in the dev keynote, they briefly ment...
# webassembly
s
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
I assume they mean TeaVM or the other transpilers of bytecode
b
I guess it’s Java code compiled using j2cl and it using GC proposal which is under development
s
oh wow! Thanks for the insight Zalim!
s
You can find a Java sample compiling to Wasm + GC with J2CL here: https://twitter.com/sdeleuze/status/1536288226138284032
s
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.