Skip to content

Commit 7a2d24f

Browse files
Rewrite of PEP795
1 parent d77cbe2 commit 7a2d24f

25 files changed

+2740
-0
lines changed

peps/pep-0795.rst

Lines changed: 2450 additions & 0 deletions
Large diffs are not rendered by default.

peps/pep-0795/diagram_1.mmd

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
graph LR
3+
subgraph Sub 1
4+
A[A]
5+
D[D]
6+
end
7+
8+
subgraph Sub 2
9+
B[B]
10+
end
11+
12+
C:::imm
13+
14+
A ----> C
15+
B ----> C
16+
C ----> D
17+
A -. GIL 1 .-> C
18+
B -. GIL 2 .-> C
19+
C -. GIL 1 .-> D
20+
C -. GIL 2 .-> D
21+
22+
classDef imm fill:#ADD8E6,stroke:#003366,stroke-width:1px,color:#003366;
23+
linkStyle 4,6 stroke:#f00,stroke-width:1px,color:blue;
24+
linkStyle 3,5 stroke:#90f,stroke-width:1px,color:blue;

peps/pep-0795/diagram_1.svg

Lines changed: 1 addition & 0 deletions
Loading

peps/pep-0795/diagram_10.mmd

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
graph LR
3+
subgraph Sub 1
4+
A[A]
5+
end
6+
7+
subgraph Sub 2
8+
B[B]
9+
end
10+
11+
C[Cell]:::imm
12+
D[Shared field]:::fake_imm
13+
E[2]:::imm
14+
15+
A ----> C
16+
B ----> C
17+
C ----> D
18+
D ----> E
19+
A -. GIL 1 .-> C
20+
C -. GIL 1 .-> D
21+
D -. GIL 1 .-> E
22+
B -. GIL 2 .-> C
23+
C -. GIL 2 .-> D
24+
D -. GIL 2 .-> E
25+
26+
classDef imm fill:#ADD8E6,stroke:#003366,stroke-width:1px,color:#003366;
27+
classDef fake_imm fill:#aaa,stroke:#000,stroke-width:1px;
28+
linkStyle 4,5,6 stroke:#f00,stroke-width:1px,color:blue;
29+
linkStyle 7,8,9 stroke:#90f,stroke-width:1px,color:blue;

peps/pep-0795/diagram_10.svg

Lines changed: 1 addition & 0 deletions
Loading

peps/pep-0795/diagram_11.mmd

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
graph LR
3+
subgraph Sub 1
4+
A[A]
5+
D1[interpreter-local storage]
6+
E[E]
7+
end
8+
9+
subgraph Sub 2
10+
B[B]
11+
D2[interpreter-local storage]
12+
F[F]
13+
end
14+
15+
C[Prime factoriser]:::imm
16+
17+
A ----> C
18+
B ----> C
19+
C ----> D1
20+
C ----> D2
21+
D1 ----> E
22+
D2 ----> F
23+
A -. GIL 1 .-> C
24+
C -. GIL 1 .-> D1
25+
D1 -. GIL 1 .-> E
26+
B -. GIL 2 .-> C
27+
C -. GIL 2 .-> D2
28+
D2 -. GIL 2 .-> F
29+
30+
classDef imm fill:#ADD8E6,stroke:#003366,stroke-width:1px,color:#003366;
31+
classDef fake_imm fill:#aaa,stroke:#000,stroke-width:1px;
32+
linkStyle 6,7,8 stroke:#f00,stroke-width:1px,color:blue;
33+
linkStyle 9,10,11 stroke:#90f,stroke-width:1px,color:blue;

peps/pep-0795/diagram_11.svg

Lines changed: 1 addition & 0 deletions
Loading

peps/pep-0795/diagram_12.mmd

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
2+
graph
3+
subgraph Module1
4+
A[Type1]
5+
B[Func1]
6+
X[Var1]
7+
subgraph Module2
8+
C[Type2]
9+
D[Func2]
10+
Y[Var2]
11+
end
12+
end
13+
14+
subgraph Module3
15+
E[Type3]
16+
EE[Type4]
17+
Z[Var3]
18+
F[Func3]
19+
end
20+
21+
subgraph Program
22+
O1
23+
O2
24+
x
25+
y
26+
m3
27+
m1
28+
end
29+
30+
A -- calls --> B
31+
B -- uses --> C
32+
B -- imports --> Module2
33+
B -- reads --> X
34+
B -- writes --> X
35+
C -- calls --> D
36+
C -- writes --> Y
37+
38+
E -- reads --> Z
39+
F -- writes --> Z
40+
41+
F -- imports --> Module2
42+
43+
EE -- extends --> E
44+
45+
O1 -- \_\_class__ --> EE
46+
O2 -- \_\_class__ --> A
47+
x --> O1
48+
y --> O2
49+
m1 -- imports --> Module1
50+
m3 -- imports --> Module3

peps/pep-0795/diagram_12.svg

Lines changed: 1 addition & 0 deletions
Loading

peps/pep-0795/diagram_2.mmd

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
graph LR
3+
subgraph Sub 1
4+
A[A]
5+
end
6+
7+
subgraph Sub 2
8+
B[B]
9+
end
10+
11+
C:::imm
12+
D:::imm
13+
14+
A ----> C
15+
B ----> C
16+
C -- \_\_class__ --> D
17+
18+
classDef imm fill:#ADD8E6,stroke:#003366,stroke-width:1px,color:#003366;

0 commit comments

Comments
 (0)