Giter Site home page Giter Site logo

swiftwasm / wasmkit Goto Github PK

View Code? Open in Web Editor NEW
121.0 6.0 5.0 856 KB

WebAssembly Runtime written in Swift

Home Page: https://swiftpackageindex.com/swiftwasm/WasmKit/main/documentation/wasmkit

License: MIT License

Swift 98.40% Makefile 0.12% Shell 0.32% Python 0.10% C 0.03% CMake 1.03%
swift swiftwasm webassembly webassembly-runtime

wasmkit's Introduction

WAKit Icon

WasmKit

A WebAssembly runtime written in Swift. Originally developed and maintained by @akkyie.

Implements all of WebAssembly 2.0 binary parsing and execution core spec, with an exclusion of SIMD instructions. The validation and text format parts of the spec are not implemented yet.

It also has rudimentary support for WASI with only a few WASI imports implemented currently, with a goal of eventual full support for wasi_snapshot_preview1. See WASI module for more details.

Usage

Command Line Tool

$ # Usage: wasmkit-cli run <path> <functionName> [<arguments>] ...
$ swift run wasmkit-cli run Examples/wasm/fib.wasm fib i32:10
[I32(89)]

As a Library

Swift Package Manager

Add the URL of this repository to your Package.swift manifest. Then add the WasmKit library product as dependency to the target you'd like to use it with.

Testing

To run the core spec test suite run this:

$ make spectest   # Prepare core spec tests and check their assertions with WasmKit

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.