Skip to content

Commit 9a79b97

Browse files
committed
Notes on future plans
1 parent b52ac85 commit 9a79b97

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

notes.txt

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Put C modules in sub directory
2+
Make an all submodule so can insert all of them easily with
3+
4+
import _ "github.com/ncw/gpython/stdlib/all"
5+
6+
Factor main code into submodule so gpython is minimal.
7+
8+
Make a gpython-minimal with no built in stdlib
9+
10+
Bytecode compile the standard library and embed into go files - can then make a gpython with no external files.
11+
12+
Testing
13+
14+
python3 -m dis hello.py
15+
python3 -mcompileall hello.py
16+
mv __pycache__/hello.cpython-33.pyc hello.pyc
17+
18+
go build ./... && go build
19+
./gpython hello.pyc

0 commit comments

Comments
 (0)