PyRust¶
A tiny Python-like interpreter implemented in Rust.
Quick start¶
nums = [1, 2, 3]
total = 0
for n in nums:
total += n
print("sum", total) # sum 6
print(nums[::-1]) # [3, 2, 1]
Documentation¶
| Page | Description |
|---|---|
| Features | Language, built-in functions, type methods, math module, optimizer |
| Limitations | What is not yet supported |
| Optimizer | Details of the 15-pass peephole pipeline |
| Benchmarks | Performance comparison with CPython |