Oracle demos Java on WebAssembly

54 views
Skip to first unread message

ji...@jinq.org

unread,
Apr 26, 2025, 4:35:49 PMApr 26
to GWT Users
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? :)
Reply all
Reply to author
Forward
0 new messages