Skip to content

WebAssembly on GraalVM #1358

@linux-china

Description

@linux-china

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 :)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions