https://github.com/hisano/wasm-interpreter-on-java
WebAssembly Interpreter written in Java (Java 8, Pure Java, No library dependencies)
https://github.com/hisano/wasm-interpreter-on-java
interpreter java java8 purejava wasm webassembly
Last synced: 8 months ago
JSON representation
WebAssembly Interpreter written in Java (Java 8, Pure Java, No library dependencies)
- Host: GitHub
- URL: https://github.com/hisano/wasm-interpreter-on-java
- Owner: hisano
- License: apache-2.0
- Created: 2022-04-29T10:34:53.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-06T09:50:25.000Z (almost 2 years ago)
- Last Synced: 2025-04-02T19:42:12.389Z (9 months ago)
- Topics: interpreter, java, java8, purejava, wasm, webassembly
- Language: WebAssembly
- Homepage:
- Size: 476 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```java
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
```sh
$ ./mvnw install
```
## License
Apache License Version 2.0