1

You should not expect any Python runtime in Wbassembly production-grade stable yet. Webassembly came out 2 years ago. Pyodide (supported by Mozilla) is the most well supported Python AFAIK. BTW, have you actually tried Pyodide? It runs quite well in my computer.


1

Following up on @CAD97's answer, wasm-bindgen is now available. It does its best to expose all javascript functionality to Rust applications compiled to WebAssembly. Documented here is an example of using a serde macro to automatically encode and decode structs to/from javascript objects.


1

There is now a library that does much of this (for Rust)! stdweb: https://github.com/koute/stdweb Design goals Expose a full suite of Web APIs as exposed by web browsers. Try to follow the original JavaScript conventions and structure as much as possible, except in cases where doing otherwise results in a clearly superior design. Be a ...


1

If you're using Emscripten already (or even if you aren't), their preamble offers some convenient extensions to WebAssembly.Module on the JavaScript side to make interacting with C FFI compatible functions easier. Namely (abreviated, see links for more information): ccall(ident, returnType, argTypes, args, opts) Call a compiled C function from ...


Only top voted, non community-wiki answers of a minimum length are eligible