Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 575 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 575 Bytes

WebAssembly Interpreter on Java

WebAssembly Interpreter written in Java (Java 8, Pure Java, No library dependencies)

Features (under development)

  • Pure Java
  • No library dependencies
  • wasm file support
  • Integer operations
  • Control flow
  • Functions
  • Linear memory

Example

    byte[] wasmFileContent = Files.toByteArray(new File("add.wasm"));
    int result = new Interpreter(wasmFileContent).invoke("add", 1, 2);
    System.out.println("1 + 2 = " + result);

How to build

$ ./mvnw install

License

Apache License Version 2.0