{"repo":"vshymanskyy/wasm2mpy","free":true,"listed":false,"github":"https://github.com/vshymanskyy/wasm2mpy","clone":"git clone https://github.com/vshymanskyy/wasm2mpy.git","description":"Compile WebAssembly to native MicroPython modules","language":"C","stars":154,"topics":["armv7","esp32","micropython","raspberry-pi","wasm","webassembly","webassembly-runtime","rp2040","rp2350","nrf52"],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"wasm2mpy wasm2mpy enables developers to write code in statically compiled languages and run it on MicroPython-based embedded systems (such as ESP32, Raspberry Pi Pico, STM32, and nRF52) with near-native performance. Since MicroPython is relatively slow for computationally intensive applications, wasm2mpy provides the tools necessary to run demanding software, such as AI models and signal processing algorithms, more efficiently. Status App \\ Target x86/x64 armv6m armv7m/+s/+d esp8266[^2] esp32 rv32imc ------------------- ----------- ---------- --------- ---------- ------------ ---------- 🚀 TypeScript[^1] ✅✅ ✅ ✅✅✅ ⚠️[^4] ✅ ✅ 🤩 C++ ✅✅ ✅ ✅✅✅ 🟡 ✅ ✅ 🦀 Rust ✅✅ ✅ 🟡🟡✅ ⚠️[^4] ✅ ✅ 🤖 TinyGo ✅✅ ✅ 🟡🟡✅ ⚠️[^4] ✅ ✅ ⚡ Zig ✅✅ ✅ ✅✅✅ ⚠️[^4] ✅ ✅ ✨ Virgil ✅✅ ✅ ✅✅✅ 🟡 ✅ ✅ ⚙ WAT ✅✅ ✅ ✅✅✅ 🟡 ✅ ✅ 🇨 Coremark ✅✅ 🚧 ✅✅✅ 🟡 ✅ ✅ ✅ builds and runs OK 🟡 builds OK, doesn't run 🚧 work in progress [^1]: AssemblyScript [^2]: esp8266 requires the use of esp.set native code location , and setting WASM PAGE SIZE to 8192 (or need to wait for [ WASM Custom Page Sizes ][1]) [^4]: not enough memory to run, need to wait for [ WASM Custom Page Sizes ][1] CoreMark results - ESP32-C3 160MHz: 179.791 - STM32F405 168MHz: 233.918 - ESP32 240MHz: 228.363 - ESP32-S3 240MHz: 271.573 - BL616 320MHz: 344.293 - iMXRT1062 600MHz: 1911.437 - i5-8250U 1.6GHz: 18696.248 Upload and Run Follow the build instructions Run any exported function [!NOTE] This requires adding some glue code to the runtime. Glue code can be auto-gene","default_branch":null,"files":null,"tree":[],"storefront":"/r/vshymanskyy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vshymanskyy/wasm2mpy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}