Saturday, April 26, 2025

Oracle demos Java on WebAssembly

Oracle recently showed off a demo where they used GraalVM to compile Java code to WebAssembly:


The demo is a Java compiler that runs in the browser (the browser needs to have WASM-GC support). 

They seem to have some basic JS integration working with a JSNI-like interface where JavaScript is written inside annotations. There doesn't seem to be support for anything like overlay types or JSInterop at the moment. But they do seem to support passing Java functional interfaces into JavaScript as callbacks.

It's still early days, but maybe this could be the basis for GWT 4? :)

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/d8c0b4ab-3108-40ad-9313-28b9143cd1b1n%40googlegroups.com.

No comments:

Post a Comment