-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
Add WebAssembly runtime on GraalVM with CLI and embed support, just like LLVM on GraalVM.
Cli as following:
gwasm polyglot.wasm
Embed as following:
Context polyglot = Context.newBuilder().allowAllAccess(true).build();
File file = new File("polyglot.wasm");
Source source = Source.newBuilder("wasm", file).build();
Value cpart = polyglot.eval(source);
cpart.execute();
Now no Java Runtime for WebAssembly. https://github.com/appcypher/awesome-wasm-runtimes
Now lots of guys did the work to make WebAssembly run from web and with huge future for FaaS, Serverless and WASM MicroVM. If GraalVM has this feature, and Java developers can develop a real Polyglot runtime platform to accept WebAssembly module from Rust, TypeScript etc. Please consider WebIDL and WASI support.
Happy to see TruffleWASM :)
thomaswue, gurkerl83, mdsina, exabrial, alex4o and 30 moreneomatrix369 and lafingup-to-you, dungdm93, unmellow, gravypod, sideeffffect and 8 more