They showed that JetBrains was experimenting with Kotlin compiling to WASM.
There wasn't any mention of anyone doing Java compilation to WASM.
I wonder how hard it would be to modify GWT to compile to WASM. Possible? Thoughts?
Gordan Krešić
unread,
May 12, 2023, 6:59:17 AM5/12/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
On 12. 05. 2023. 12:27, Craig Mitchell wrote:
>
> There wasn't any mention of anyone doing Java compilation to WASM.
>
> I wonder how hard it would be to modify GWT to compile to WASM. Possible? Thoughts?
There is a Wasm compilation target in J2CL, but I haven't ever tried it myself:
From memory, TeaVM has had WASM in an undocumented and experimental status for a few years now. I won't be holding my breath for that one. 🙂
Well, at least it's documented now 😉
lofid...@gmail.com
unread,
May 14, 2023, 7:50:58 AM5/14/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to GWT Users
Thanks for the info. A very good explanation in that video.
But still don't understand why would this solution with WASM GC 2x faster than the "pure transpiling" solution? The latter is completely in JS and uses the GC from JS as it is.
Does this means using JS with WASM will be 2x faster than the pure JS??? 🤣
Thanks
Lofi
Craig Mitchell
unread,
May 16, 2023, 7:10:14 AM5/16/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to GWT Users
I think the advantages come from transpiling languages other than JS to WASM (in their examples, Kotlin and Dart). Eg: An integer in Java, will still be in integer in WASM, while when you ask GWT for an integer, it has to do a bunch of magic, as JS doesn't have integers.