Hacker News new | ask | show | jobs
by pookeh 1128 days ago
Rust is not an interpreted language like Python. Your comment would make sense if Python code could be compiled into x86 or ARM assembly in the first place.
1 comments

> Your comment would make sense if Python code could be compiled into x86 or ARM assembly in the first place.

It can actually be compiled (or transpiled) into C code [1] with few limitations, so I can't see why not. It still requires libpython but it should be better than porting the whole interpreter to webassembly.

[1] https://github.com/Nuitka/Nuitka

By that logic, you can transpile your Python to C and then compile to Wasm
Yes, that was my point. AFAIK it is not possible with current tooling, though.