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

  • 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.

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

  • Author here, ready to answer any questions.

  • 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.

  • [dead]