GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Home
  • Blog
  • Docs
  • GitHub
  • Discord

This view

  • Original page
  • New address

GeezerVison is showing rustpython.github.io β€” Why RustPython?

RustPython Logo
RustPython

An open source Python 3 (CPython >= 3.11.0) interpreter written in Rust 🐍 😱 🀘

Python Logo Python
↓
RustPython
β†’
Python embedded in Rust apps
↓
WebAssembly Logo WebAssembly
β†’
Python on the Web

RustPython is a Python interpreter written in Rust. RustPython can be embedded into Rust programs to use Python as a scripting language for your application, or it can be compiled to WebAssembly in order to run Python in the browser. RustPython is free and open-source under the MIT license.

  • Hello World!
  • Online demo running on WebAssembly
  • Notebook
Installation
cargo install --git https://github.com/RustPython/RustPython rustpython wapm install rustpython conda install rustpython -c conda-forge
OR BUILD FROM SOURCE
Goals
Full Python 3 environment entirely in Rust (not CPython bindings), with a clean implementation and no compatiblity hacks.
Fast, reliable and secure implementation of Python that can be used from Rust or compiled to WebAssembly.

Why RustPython?

There are many implementations of Python. For example:

  • CPython (C), which is the most common
  • Jython (Java)
  • IronPython (.NET)
  • PyPy (Python)
  • Stackless

Each of these implementations offer some benefits: Jython, for example, compiles Python 2 source code to Java byte code, then routes it to the Java Virtual Machine. Because Python code is translated to Java bytecode, it looks and feels like a true Java program at runtime and so it integrates well with Java applications.

IronPython is well-integrated with .NET, which means IronPython can use the .NET framework and Python 2 libraries or vice versa.

We want to unlock the same possibilities that Jython and IronPython enable, but for the Rust programming language. In addition, thanks to Rusts’ minimal runtime, we’re able to compile RustPython to WebAssembly and allow users to run their Python code easily in the browser.

Featured Posts
  • pip is working! πŸŽ‰ πŸŽ‰
  • How to contribute to RustPython using CPython's unit tests
Dashboard
  • CPython test compatibility
  • What's left
  • Benchmarks
  • Website Analytics
Contributors

  • windelbouwman
  • coolreader18
  • palaviv
  • cthulahoops
  • youknowone
  • OddCoincidence
  • OddBloke
  • skinny121
  • rmliddle
  • jgirardet
VIEW MORE
HOW TO CONTRIBUTE
You are visitor 01402520 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.