Hacker News new | ask | show | jobs
by selcuka 1128 days ago
> 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

1 comments

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.