Rustpython 0.3 Released: Bringing Python Interpretation to New Standards
Developers of the Python programming interpreter, Rustpython, have announced the release of version 0.3. This new version, written in Rust, aims to ensure compatibility with CPYTHON 3.11 and future releases. The project, established in 2018 by Shing Lyu, a developer of the Servo engine and a key contributor to the translation of the Firefox CSS engine to Rust components, continues to push the boundaries of Python interpretation.
If you want to evaluate the current development state, you can try out the web interface with the Rustpython interpreter compiled in WebAssembly. This allows you to experience the power of the Rustpython interpreter firsthand. The project’s code is distributed under the MIT license.
Rustpython consists of several components, including a parser that generates Python abstract syntactic tree (AST) code, an AST compiler in Byticod, and a virtual machine to execute bytecode. In addition, the project provides a Just-in-Time (JIT) compiler for faster execution by converting Python functions into machine code. Rustpython’s performance is further enhanced by WebAssembly, making it compatible with web browsers.
Rustpython also offers seamless integration with Rust projects without the need for CPython-based bindings. By directly embedding Python code into Rust applications, developers can leverage Python as a scripting language. Notable projects that are already using Rustpython include the DBMS greptimedb, the game engine Pyckitup, the game Robot Rumble, and the linter Ruff.
With the release of Rustpython 0.3, developers and Python enthusiasts can enjoy a more powerful, compatible, and flexible Python interpreter. The Rustpython project continues to demonstrate the potential for innovation in programming languages.