Skip to content

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

License

Notifications You must be signed in to change notification settings

hisano/wasm-interpreter-on-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published