Re:Wasm2Mpy: Compiling WASM to MicroPython so it can run on ...
by westurner on Thursday September 26, 2024 @01:51PM
(#41661198)
If they're both Turing-complete opcodes instruction sets, Church-Turing says it is possible with just .pyc, too.
But that doesn't solve for WASM on a MicroPython device.
And that is why smart contracts without costed opcodes could not be built on Python.
- compile any language to wasm
- translate wasm to C99
- use the native target toolchain to compile C99 to .mpy
- run that on the device