KWasm is an Embeddable WebAssembly interpreter for the JVM
The primary goal of KWasm is to be a relatively lightweight, embeddable, WebAssembly interpreter for applications running in the JVM (or on Android). Beyond that, KWasm strives to:
- meet the latest current WebAssembly Specification's requirements,
- use minimal system resources,
- maintain WebAssembly's strict sandbox-like functionality, and
- support interoperation between Java/Kotlin code and the WebAssembly it is tasked with running.
Achieving good performance is a goal as well, but as with all interpeters: performance will never be as good as a compiled solution.
The primary benefit of interpretation over compilation is the capability for dynamic module loading & execution.
The development of KWasm will be done in a series of milestones:
- ✅ Implement text-based Wasm Parser Capability & AST-generation. (Completed 2020-01-01)
- ✅ Use the text-based Wasm Parser to develop/test the interpretation of the AST. (Completed 2020-12-23)
- ✅ Implement a binary wasm parser with AST-generation. (Completed 2021-01-07)
- Get all official spec tests to pass.
- Finalize API.
From the directory of your choice:
- Clone the repository to your local machine.
- Open IntelliJ/Android Studio, and Choose "New Project from Existing Sources"
- Select the
KWasmdirectory created in step 1.
That's it! The IDE will sync the project and you can begin working on KWasm.
You can run the entire test suite with:
Copyright 2019 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.