w2c2
wasmboy
w2c2 | wasmboy | |
---|---|---|
9 | 3 | |
669 | 1,358 | |
- | - | |
8.5 | 0.0 | |
24 days ago | about 1 year ago | |
C | WebAssembly | |
MIT License | GNU General Public License v3.0 only |
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...
wasmboy
- Any Gameboy step by step emulator?
-
Game Boy Wordle clone: How to compress 12972 five-letter words to 17871 bytes
Looks like you can try it out on this webassembly Gameboy emulator https://wasmboy.app/
-
Writing a Game Boy Emulator in OCaml
As u/yawaramin mentioned, unfortunately, there is no standard battle-tested way of compiling OCaml to WASM. If your goal is to try out WASM, Rust should be a pretty safe choice. There are existing Rust + WASM Game Boy emulators such as wasmboy and gopher-boy.
What are some alternatives?
raw-wasm - Raw WebAssembly demos
gbemu - WebAssembly based Gameboy Emulator
react-native-webassembly - ⚛️ 🏎 WebAssembly for React Native powered by JSI.
gb-wordyl - A word game for the Nintendo Game Boy / Color, Analogue Pocket, Mega Duck
assemblyscript - A TypeScript-like language for WebAssembly.
wordle-trie-packing - Wordle clones are everywhere, but who is thinking about the bandwidth?
RustPython - A Python Interpreter written in Rust
roadroller - Roadroller: Flattens Your JavaScript Demo
jerryscript - Ultra-lightweight JavaScript engine for the Internet of Things.
vaporBoy - Gameboy / Gameboy Color Emulator PWA built with Preact. ⚛️ Powered by wasmBoy. 🎮Themed with VaporWave. 🌴🐬
hermit - Actually Portable WebAssembly compiler toolchain for self-contained cross-platform binaries
wordle - Finding optimal play in the game of wordle