top | item 35897018

(no title)

pookeh | 2 years 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.

discuss

order

selcuka|2 years 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

ridruejo|2 years ago

By that logic, you can transpile your Python to C and then compile to Wasm