Wasm2Mpy: Compiling WASM to MicroPython so it can run on Raspberrys

by syrusakbaryon 9/20/2024, 7:10 AMwith 39 comments

by bragron 9/24/2024, 7:56 PM

I feel like this project is a classic example of the README missing a "Why?" section. Not to justify the project, it just makes it hard to evaluate without understanding why they choose implementing a transpiler rather than an embedded WASM VM. Or why not transpile to native assembly? I'm sure they have good reasons but they aren't listed here.

by szundion 9/24/2024, 9:02 PM

Can we have python compiled to wasm compiled to python compiled to wasm compiled to python - just for obfuscation reasons?

by vshymanskyyon 9/25/2024, 4:51 AM

Author here, ready to answer any questions.

by tony-allanon 9/24/2024, 11:26 PM

A great way to allow code created in another language to be compiled to a MicroPython module and then run in a MicroPython environment.

These .mpy files are dynamically loaded into MicroPython using a regular python import.