w2c2
raw-wasm
Our great sponsors
w2c2 | raw-wasm | |
---|---|---|
9 | 3 | |
668 | 417 | |
- | - | |
8.6 | 5.6 | |
13 days ago | 5 months ago | |
C | WebAssembly | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
w2c2
-
Build your own WebAssembly Compiler
For AOT, the simplest approach, that actually produces the fastest native code, is to naively translate WASM opcodes to C.
This is for example what W2C2 does: https://github.com/turbolent/w2c2
-
Show HN: RustPython for FreeDOS with W2c2
This uses [w2c2](https://github.com/turbolent/w2c2) to convert RustPython,
- DeviceScript: TypeScript for Tiny IoT Devices
-
Running Rust code on Plan 9 using webassembly
Using a modified version of the w2c2 wasm->C89 translator, I was able to run Rust code on 9front!
-
Rust on macOS 9
There's not much data in the performance section of the front-page readme of the repo, but the one bullet point there seems promising:
> Coremark 1.0: ~7% slower than native [0]
[0] https://github.com/turbolent/w2c2#performance
- W2c2: Translates WebAssembly Modules to C
- W2c2: Translate WebAssembly Modules to C
- I'm not sure what this is, but I'm sure I want to find out. WASM2C.. Is it for me...
raw-wasm
- Web assembly book?
-
Smolnes: A NES Emulator In
Big fan of this author's work.
They have a Gameboy emulator written in C, which can be compiled to WASM and run in the browser.
https://github.com/binji/binjgb
I learned a lot from the code.
Also I love this project with a bunch of demos in hand-written WebAssembly Text (WAT) format, which is like low-level Lisp that works only with raw memory, numbers, and minimal syntax.
https://github.com/binji/raw-wasm
Then I discovered the same author is quite active in the WebAssembly ecosystem, including specs and tooling. Fascinating stuff!
https://github.com/WebAssembly/spec
https://github.com/WebAssembly/wabt
- Raw WebAssembly Demos
What are some alternatives?
react-native-webassembly - ⚛️ 🏎 WebAssembly for React Native powered by JSI.
binaryen - Optimizer and compiler/toolchain library for WebAssembly
assemblyscript - A TypeScript-like language for WebAssembly.
xxhash-wasm - A WebAssembly implementation of xxHash
RustPython - A Python Interpreter written in Rust
wasm2lua - wasm2lua: converting WASM into Lua
jerryscript - Ultra-lightweight JavaScript engine for the Internet of Things.
cpl-webassembly - Small WebAssembly exercise session for the KU Leuven course Comparative Progamming Languages
hermit - Actually Portable WebAssembly compiler toolchain for self-contained cross-platform binaries
smolnes - NES emulator in <5000 bytes of C
esphome - ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
binjnes - NES emulator implemented in C, that also runs in the browser