WebAssembly

A compact binary format that lets compiled programs such as a Python interpreter run inside a web browser.

In more detail

Browsers run WebAssembly code in a sandbox at close to native speed. Pyodide is CPython compiled to WebAssembly, which is why platform.machine() reports wasm32 when Python runs in a browser.

Example

import platform
print(platform.machine())   # wasm32 in a browser

Related terms

Taught in

References

Certification courses