Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
e9a70c7
Update dependencies in Cargo.lock and add Cargo.lock to .gitignore
shawhanken Dec 18, 2025
68da611
Merge branch 'main' of https://github.com/yusufyian/RustPython
shawhanken Dec 18, 2025
1bf2bdf
Update dependencies in Cargo.lock and add Cargo.lock to .gitignore
shawhanken Dec 19, 2025
1726b36
Add additional reference files to .gitignore
shawhanken Dec 19, 2025
fd57302
Update .gitignore to exclude additional files and improve dependency …
shawhanken Dec 19, 2025
ecfabb8
Merge branch 'RustPython:main' into main
yusufyian Dec 19, 2025
bc9b80a
Merge branch 'main' of https://github.com/yusufyian/RustPython
shawhanken Dec 19, 2025
1a1c97a
Add checkpoint functionality to VirtualMachine
shawhanken Dec 19, 2025
3997507
Add checkpoint request handling and update checkpoint functionality
shawhanken Dec 19, 2025
551d025
Enhance demo script with additional print statements for debugging
shawhanken Dec 19, 2025
665790f
Update demo user and enhance README with testing instructions
shawhanken Dec 24, 2025
c2edc6b
Update .gitignore to include demo files
shawhanken Dec 24, 2025
4dc6120
Update .gitignore and demo script for type checking
shawhanken Dec 25, 2025
9ac5e54
Rename RustPython binary to "pvm" in Cargo.toml and update demo.py fo…
yusufyian Dec 26, 2025
8ea2822
Rename RustPython binary to 'pvm' in Cargo.toml and update demo.py fo…
yusufyian Dec 26, 2025
66dc584
Update README and test script to reflect binary name change from 'rus…
yusufyian Dec 29, 2025
6c26391
Refactor demo.py for improved clarity and structure in checkpointing …
yusufyian Dec 29, 2025
a1c1891
Update demo.py and README for financial trading scenario simulation
yusufyian Dec 29, 2025
f41b080
Enhance demo.py with additional trading scenario features and update …
yusufyian Dec 29, 2025
5f547a5
Implement PVM host and runtime modules with initial configurations
yusufyian Dec 29, 2025
3ed0799
Update various files for improved functionality and clarity
yusufyian Dec 29, 2025
9704677
Enhance VM functionality and code clarity
yusufyian Dec 29, 2025
965b201
Enhance demo script and update .gitignore
yusufyian Dec 30, 2025
9f354c2
Update .gitignore to include all reference files and remove specific …
yusufyian Dec 30, 2025
b50f1f3
Remove obsolete reference files for PVM integration and continuation …
yusufyian Dec 30, 2025
f8fc889
Remove obsolete demo files for checkpoint/resume functionality
yusufyian Dec 30, 2025
26ac488
Remove obsolete binary snapshot file for demo functionality
yusufyian Dec 30, 2025
b2ba6ea
Remove obsolete test script for checkpoint/resume functionality
yusufyian Dec 30, 2025
2dfed2d
Refactor comments in state_store.py for clarity and consistency
yusufyian Dec 30, 2025
d8aabdd
Enhance checkpoint functionality and update .gitignore
yusufyian Dec 30, 2025
6d54427
Update source location handling in compiler-source
yusufyian Dec 30, 2025
a1a7ec6
Refactor checkpoint and snapshot handling for improved functionality
yusufyian Dec 30, 2025
3620c13
Update version formatting in version.rs to reflect PVM 0.0.2 integration
yusufyian Dec 31, 2025
fe31a3d
Add PVM versioning support and update build script
yusufyian Dec 31, 2025
8eaf89f
Implement multi-frame checkpoint support and enhance stack management
yusufyian Dec 31, 2025
5544761
Enhance checkpoint functionality and update demo scripts
yusufyian Dec 31, 2025
13117d6
Add support for enumerate, zip, map, and filter in snapshot handling
yusufyian Dec 31, 2025
63c44b5
Enhance checkpoint and block stack management in VM
yusufyian Dec 31, 2025
c6806af
Add support for ListIterator and RangeIterator in snapshot handling
yusufyian Jan 3, 2026
9844d0d
Add comprehensive demo snapshot to .gitignore
yusufyian Jan 3, 2026
a07fed6
Remove Cargo.lock file to prevent unnecessary tracking of dependencies
yusufyian Jan 5, 2026
06e9e6a
Add error handling and execution options in PVM runtime
yusufyian Jan 5, 2026
072c0cc
Add determinism support and enhance error handling in PVM runtime
yusufyian Jan 8, 2026
5e01466
Enhance PVM runtime with import tracing and version updates
yusufyian Jan 8, 2026
b9dc39d
Add new business scenario demos to README
yusufyian Jan 8, 2026
d5afdde
Fix formatting issue in escrow_marketplace_demo.py by adding a newlin…
yusufyian Jan 12, 2026
9f3c462
Enhance PVM runtime with continuation support and new features
yusufyian Jan 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update .gitignore to include demo files
- Added demo.dot and demo.png to .gitignore to prevent tracking of demo-related files.
  • Loading branch information
shawhanken committed Dec 24, 2025
commit c2edc6bcf90b83f79f1968749e4db676d022f424
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ refs/Cowboy_An_Actor-Model_Layer1 with Verifiable_Off-Chain_Compute_CN.md
refs/Cowboy_An_Actor-Model_Layer1 with Verifiable_Off-Chain_Compute_EN.md
refs/Cowboy_An_Actor-Model_Layer1 with Verifiable_Off-Chain_Compute(Sugguestion-SDK Ergonomics)_v2.md
refs/Cowboy_An_Actor-Model_Layer1 with Verifiable_Off-Chain_Compute(Sugguestion-SDK Ergonomics)_v3_EN.md
demo.dot
demo.png
182 changes: 182 additions & 0 deletions examples/ast_visualize/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
# AST Visualize Example

This example shows how to render a Python AST as a structured tree or a
Graphviz DOT file using RustPython's `ast` module.

## Run

Tree view (default):

```
./target/release/rustpython examples/ast_visualize/ast_view.py --file examples/ast_visualize/sample.py
```

Dump view (ast.dump):

```
./target/release/rustpython examples/ast_visualize/ast_view.py --file examples/ast_visualize/sample.py --format dump
```

Graphviz DOT output:

```
./target/release/rustpython examples/ast_visualize/ast_view.py --file examples/ast_visualize/sample.py --format dot --output ast.dot
```

## Graphviz 安装与渲染
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Mixed language text in documentation.

The README contains Chinese text (lines 26, 71, 77) mixed with otherwise English documentation. For consistency and broader accessibility, consider using English throughout or providing separate localized documentation.

  • Line 26: "Graphviz 安装与渲染" → "Graphviz Installation & Rendering"
  • Line 71: "安装完成后将 DOT 渲染为图片:" → "After installation, render DOT to an image:"
  • Line 77: "打开图片:" → "Open the image:"

Also applies to: 71-72, 77-78

🤖 Prompt for AI Agents
In `@examples/ast_visualize/README.md` at line 26, Update the README.md in
examples/ast_visualize to remove mixed-language text by replacing Chinese
phrases with English equivalents: change the heading "Graphviz 安装与渲染" to
"Graphviz Installation & Rendering", replace "安装完成后将 DOT 渲染为图片:" with "After
installation, render DOT to an image:", and replace "打开图片:" with "Open the
image:"; scan the rest of README.md for the same Chinese strings ("Graphviz
安装与渲染", "安装完成后将 DOT 渲染为图片:", "打开图片:") and update them to the provided English
phrases to ensure consistent language throughout the document.


macOS (Homebrew):

```
brew install graphviz
```

macOS (Conda):

```
conda install -c conda-forge graphviz
```

Ubuntu/Debian:

```
sudo apt-get update
sudo apt-get install graphviz
```

Fedora:

```
sudo dnf install graphviz
```

Arch:

```
sudo pacman -S graphviz
```

Windows (Chocolatey):

```
choco install graphviz
```

Windows (Scoop):

```
scoop install graphviz
```

安装完成后将 DOT 渲染为图片:

```
dot -Tpng ast.dot -o ast.png
```

打开图片:

macOS:

```
open ast.png
```

Linux:

```
xdg-open ast.png
```

Windows:

```
start ast.png
```

## Example Output

Tree view:

```
`-- Module
|-- FunctionDef name=add
| |-- arguments
| | |-- arg arg=a
| | `-- arg arg=b
| `-- Return
| `-- BinOp
| |-- Name id=a ctx=Load
| |-- Add
| `-- Name id=b ctx=Load
|-- Assign targets=list[1]
| |-- Name id=result ctx=Store
| `-- Call func=Name
| |-- Name id=add ctx=Load
| |-- Constant value=1
| `-- Constant value=2
`-- If
|-- Compare
| |-- Name id=result ctx=Load
| |-- Gt
| `-- Constant value=2
`-- Expr
`-- Call func=Name
|-- Name id=print ctx=Load
`-- Constant value='ok'
```

Dump view (excerpt):

```
Module(
body=[
FunctionDef(
name='add',
args=arguments(
posonlyargs=[],
args=[
arg(arg='a'),
arg(arg='b')],
kwonlyargs=[],
kw_defaults=[],
defaults=[]),
body=[
Return(
value=BinOp(
left=Name(id='a', ctx=Load()),
op=Add(),
right=Name(id='b', ctx=Load())))],
decorator_list=[]),
Assign(
targets=[
Name(id='result', ctx=Store())],
value=Call(
func=Name(id='add', ctx=Load()),
args=[
Constant(value=1),
Constant(value=2)],
keywords=[])),
If(
test=Compare(
left=Name(id='result', ctx=Load()),
ops=[
Gt()],
comparators=[
Constant(value=2)]),
body=[
Expr(
value=Call(
func=Name(id='print', ctx=Load()),
args=[
Constant(value='ok')],
keywords=[]))],
orelse=[])],
type_ignores=[])
```

## Notes

- Use `--code` to pass inline code.
- Use `--attrs` to include line/column info.
- If you render DOT, use Graphviz (dot) to convert it to an image.
Loading