GithubHelp home page GithubHelp logo

davnavr / wacil Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 739 KB

A WebAssembly to CIL compiler

License: Apache License 2.0

F# 73.71% TypeScript 0.41% WebAssembly 1.19% C# 24.63% Rust 0.06%
dotnet webassembly cil ecma-335 compiler wasm

wacil's Introduction

wacil

Project Status: WIP โ€“ Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

"module.wasm" |> dotnet exec

Yet another experimental compiler that translates WebAssembly files (.wasm) to .NET assemblies/modules (.dll/.netmodule) containing Common Intermediate Language bytecode.

Powered by AsmResolver, a high level library for generating .NET metadata.

Currently, work is focused on supporting most of the features from version 1.0 of the WebAssembly specification, as well as some features in the version 2.0 draft.

The following merged proposals are currently supported:

The following proposals (that at the time of writing have not yet been standardized) are currently supported:

How does it work?

Like other "compilers" from WebAssembly to CIL, WebAssembly instructions are translated to CIL instructions, which is more efficient that simply writing a WASM interpreter in C# or F#. Unlike other compilers however, all modules translated by Wacil include a reference to a runtime library Wacil.Runtime.dll. Having a separate runtime library rather than simply embedding code in the generated assembly has its own drawbacks, but has the advantage of avoiding code duplication.

wacil's People

Contributors

davnavr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.