Giter Club home page Giter Club logo

kwasm's Introduction

KWasm

KWasm is an Embeddable WebAssembly interpreter for the JVM

CircleCI CII Best Practices Summary Code Climate maintainability

Goals

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.

Milestones

The development of KWasm will be done in a series of milestones:

  1. ✅ Implement text-based Wasm Parser Capability & AST-generation. (Completed 2020-01-01)
  2. ✅ Use the text-based Wasm Parser to develop/test the interpretation of the AST. (Completed 2020-12-23)
  3. ✅ Implement a binary wasm parser with AST-generation. (Completed 2021-01-07)
  4. Get all official spec tests to pass.
  5. Finalize API.

Recommended Development Environment Setup

Prerequisites:

From the directory of your choice:

  1. Clone the repository to your local machine.
  2. Open IntelliJ/Android Studio, and Choose "New Project from Existing Sources"
  3. Select the KWasm directory created in step 1.

That's it! The IDE will sync the project and you can begin working on KWasm.

Running Tests

You can run the entire test suite with:

./gradlew test

License

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.

kwasm's People

Contributors

csilvestrini avatar jasonwyatt avatar welnanick avatar welnaseth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

kwasm's Issues

Add ParseContext to AstNode

It'll be useful to be able to provide the source-location of an invalid AstNode during the validation step.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.