Skip to content

Pep795 take2 #4542

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
937 changes: 937 additions & 0 deletions pep-9999.rst

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions pep-9999/freeze1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pep-9999/sharing1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,450 changes: 2,450 additions & 0 deletions peps/pep-0795.rst

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions peps/pep-0795/diagram_1.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

graph LR
subgraph Sub 1
A[A]
D[D]
end

subgraph Sub 2
B[B]
end

C:::imm

A ----> C
B ----> C
C ----> D
A -. GIL 1 .-> C
B -. GIL 2 .-> C
C -. GIL 1 .-> D
C -. GIL 2 .-> D

classDef imm fill:#ADD8E6,stroke:#003366,stroke-width:1px,color:#003366;
linkStyle 4,6 stroke:#f00,stroke-width:1px,color:blue;
linkStyle 3,5 stroke:#90f,stroke-width:1px,color:blue;
1 change: 1 addition & 0 deletions peps/pep-0795/diagram_1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions peps/pep-0795/diagram_10.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

graph LR
subgraph Sub 1
A[A]
end

subgraph Sub 2
B[B]
end

C[Cell]:::imm
D[Shared field]:::fake_imm
E[2]:::imm

A ----> C
B ----> C
C ----> D
D ----> E
A -. GIL 1 .-> C
C -. GIL 1 .-> D
D -. GIL 1 .-> E
B -. GIL 2 .-> C
C -. GIL 2 .-> D
D -. GIL 2 .-> E

classDef imm fill:#ADD8E6,stroke:#003366,stroke-width:1px,color:#003366;
classDef fake_imm fill:#aaa,stroke:#000,stroke-width:1px;
linkStyle 4,5,6 stroke:#f00,stroke-width:1px,color:blue;
linkStyle 7,8,9 stroke:#90f,stroke-width:1px,color:blue;
1 change: 1 addition & 0 deletions peps/pep-0795/diagram_10.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions peps/pep-0795/diagram_11.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

graph LR
subgraph Sub 1
A[A]
D1[interpreter-local storage]
E[E]
end

subgraph Sub 2
B[B]
D2[interpreter-local storage]
F[F]
end

C[Prime factoriser]:::imm

A ----> C
B ----> C
C ----> D1
C ----> D2
D1 ----> E
D2 ----> F
A -. GIL 1 .-> C
C -. GIL 1 .-> D1
D1 -. GIL 1 .-> E
B -. GIL 2 .-> C
C -. GIL 2 .-> D2
D2 -. GIL 2 .-> F

classDef imm fill:#ADD8E6,stroke:#003366,stroke-width:1px,color:#003366;
classDef fake_imm fill:#aaa,stroke:#000,stroke-width:1px;
linkStyle 6,7,8 stroke:#f00,stroke-width:1px,color:blue;
linkStyle 9,10,11 stroke:#90f,stroke-width:1px,color:blue;
1 change: 1 addition & 0 deletions peps/pep-0795/diagram_11.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions peps/pep-0795/diagram_12.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

graph
subgraph Module1
A[Type1]
B[Func1]
X[Var1]
subgraph Module2
C[Type2]
D[Func2]
Y[Var2]
end
end

subgraph Module3
E[Type3]
EE[Type4]
Z[Var3]
F[Func3]
end

subgraph Program
O1
O2
x
y
m3
m1
end

A -- calls --> B
B -- uses --> C
B -- imports --> Module2
B -- reads --> X
B -- writes --> X
C -- calls --> D
C -- writes --> Y

E -- reads --> Z
F -- writes --> Z

F -- imports --> Module2

EE -- extends --> E

O1 -- \_\_class__ --> EE
O2 -- \_\_class__ --> A
x --> O1
y --> O2
m1 -- imports --> Module1
m3 -- imports --> Module3
1 change: 1 addition & 0 deletions peps/pep-0795/diagram_12.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions peps/pep-0795/diagram_2.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

graph LR
subgraph Sub 1
A[A]
end

subgraph Sub 2
B[B]
end

C:::imm
D:::imm

A ----> C
B ----> C
C -- \_\_class__ --> D

classDef imm fill:#ADD8E6,stroke:#003366,stroke-width:1px,color:#003366;
1 change: 1 addition & 0 deletions peps/pep-0795/diagram_2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions peps/pep-0795/diagram_3.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

graph LR;
O[Stack frame]-- x -->A
A-- f -->B
A-- g -->B
B-- h -->A
B-- j -->C
O-- y -->C
Loading
Loading