Python may soon compete with JavaScript for web applications

There is a new project which should allow the Python programming language to run in web browsers with the help of WebAssembly.

The CPython on WASM The project, which will build the default and most popular implementation of the Python language written in C, is being developed by Berkeley-based software developer Ethan Smith.

According to The register, the project was created with the help of lead Python developer Christian Heimes and could make Python a viable alternative to Javascript, at least for some web applications.

Python on the web

“The new project that Christian Heimes and I are working on is aimed at making the web a supported platform for CPython, just like Windows or macOS,” Smith told The Register.

WebAssembly has taken the world by storm with its promise to bring the performance of native applications on the web to a level not possible with JavaScript.

However, The register Note that at this point, the goal of the project to bring Python to the browser via WebAssembly’s Emscripten compiler is more use case activation than performance.

The project would follow on from another project, called Pyodid, which also allows Python code to run in the browser.

“Hopefully this will allow for a larger ecosystem of Python developers targeting the web and allow for easier integration with existing Python tools and processes, many of which Pyodide had to reinvent as micropip to replace the standard pip package installer. “, explained Forgeron.

Smith hopes his project can help facilitate the development of web-based cross-platform applications, but he quickly adds that CPython on WASM is still in the early stages of development.


Source link

Comments are closed.