In the main branch of Python, the ability to build to work in the browser

Ethan Smith, one of the main developers of MyPyC, a compiler of Python modules to C code, announced the addition of changes to the CPython (Python base implementation) codebase, allowing you to build the main branch of CPython to work inside the browser, without resorting to additional patches. The assembly is carried out in the universal low-level intermediate code WebAssembly using the Emscripten compiler.

In the main branch of Python, the ability to build to work in the browser

The work was approved by Guido van Rossum, the creator of the Python programming language, who additionally offered to integrate Python support into the github.dev web service, which provides an interactive development environment that runs entirely in the browser. Jonathan Carter of Microsoft mentioned that work is currently underway to implement support for the Python language in github.dev, but the existing prototype Jupyter compute environment for github.dev used the Pyodide project (a build of Python 3.9 runtime in WebAssembly).

The discussion also brought up the topic of assembling Python with WASI (WebAssembly System Interface) support for using the WebAssembly representation of Python without binding in a web browser. It is noted that implementing this feature will require a lot of work, since WASI does not provide an implementation of the pthread API, and Python has discontinued the ability to build without enabling multithreading.

Source: opennet.ru

Add a comment