l0n0lc 0.8.1__tar.gz → 0.8.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: l0n0lc
3
- Version: 0.8.1
3
+ Version: 0.8.2
4
4
  Summary: 一个将python函数翻译为c++函数并运行的jit编译器
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Requires-Python: >=3.10
@@ -14,48 +14,7 @@ Dynamic: license-file
14
14
  ```
15
15
  pip install l0n0lc
16
16
  ```
17
- ## 2. 运行hello_world.py
18
- ```
19
- uv run tests/hello_world.py
20
- # 输入: b'1\n2\n100\n101\n'
21
- ```
22
- ```bash
23
- 输出map:
24
- c 3
25
- a 1
26
- b 2
27
- 输出list:
28
- 0 134
29
- 1 3
30
- 2 2
31
- Hello World 13 3
32
- test_other_fn 10
33
- test编译的函数 39
34
- 请输入>>>输入的 1 小于等于100
35
- 请输入>>>输入的 2 小于等于100
36
- 请输入>>>输入的 100 小于等于100
37
- 请输入>>>结果: 241
38
-
39
- ```
40
-
41
- ## 3. 查看输出文件
42
- ```bash
43
- ls -al ./l0n0lcoutput
44
- total 96
45
- drwxr-xr-x 2 root root 4096 Sep 12 01:42 .
46
- drwxrwxrwx 11 1000 1000 4096 Sep 12 01:14 ..
47
- -rw-r--r-- 1 root root 1233 Sep 12 01:42 test_add_@3ecbfe0013e83ebc.cpp
48
- -rw-r--r-- 1 root root 246 Sep 12 01:42 test_add_@3ecbfe0013e83ebc.h
49
- -rwxr-xr-x 1 root root 29904 Sep 12 01:42 test_add_@3ecbfe0013e83ebc.so
50
- -rw-r--r-- 1 root root 121 Sep 12 01:42 test_other_fn_@75fdd928ab58a8e3.cpp
51
- -rw-r--r-- 1 root root 93 Sep 12 01:42 test_other_fn_@75fdd928ab58a8e3.h
52
- -rwxr-xr-x 1 root root 15616 Sep 12 01:42 test_other_fn_@75fdd928ab58a8e3.so
53
- -rw-r--r-- 1 root root 185 Sep 12 01:14 test编译的函数_@3bf4501e0408a243.cpp
54
- -rw-r--r-- 1 root root 151 Sep 12 01:14 test编译的函数_@3bf4501e0408a243.h
55
- -rwxr-xr-x 1 root root 15656 Sep 12 01:14 test编译的函数_@3bf4501e0408a243.so
56
-
57
- ```
58
- ## 4. hello_world.py
17
+ ## 2. hello_world.py
59
18
  ```python
60
19
  import l0n0lc as lc
61
20
  import math
@@ -132,6 +91,48 @@ def test_add(a: int, b: int) -> int:
132
91
 
133
92
  print('结果:', test_add(1, 3))
134
93
 
94
+ ```
95
+
96
+ ## 3. 运行hello_world.py
97
+ ```
98
+ uv run tests/hello_world.py
99
+ # 输入: b'1\n2\n100\n101\n'
100
+ ```
101
+ ```bash
102
+ 输出map:
103
+ c 3
104
+ a 1
105
+ b 2
106
+ 输出list:
107
+ 0 134
108
+ 1 3
109
+ 2 2
110
+ Hello World 13 3
111
+ test_other_fn 10
112
+ test编译的函数 39
113
+ 请输入>>>输入的 1 小于等于100
114
+ 请输入>>>输入的 2 小于等于100
115
+ 请输入>>>输入的 100 小于等于100
116
+ 请输入>>>结果: 241
117
+
118
+ ```
119
+
120
+ ## 4. 查看输出文件
121
+ ```bash
122
+ ls -al ./l0n0lcoutput
123
+ total 96
124
+ drwxr-xr-x 2 root root 4096 Sep 12 01:46 .
125
+ drwxrwxrwx 11 1000 1000 4096 Sep 12 01:46 ..
126
+ -rw-r--r-- 1 root root 1233 Sep 12 01:46 test_add_@3ecbfe0013e83ebc.cpp
127
+ -rw-r--r-- 1 root root 246 Sep 12 01:46 test_add_@3ecbfe0013e83ebc.h
128
+ -rwxr-xr-x 1 root root 29904 Sep 12 01:46 test_add_@3ecbfe0013e83ebc.so
129
+ -rw-r--r-- 1 root root 121 Sep 12 01:46 test_other_fn_@75fdd928ab58a8e3.cpp
130
+ -rw-r--r-- 1 root root 93 Sep 12 01:46 test_other_fn_@75fdd928ab58a8e3.h
131
+ -rwxr-xr-x 1 root root 15616 Sep 12 01:46 test_other_fn_@75fdd928ab58a8e3.so
132
+ -rw-r--r-- 1 root root 185 Sep 12 01:46 test编译的函数_@3bf4501e0408a243.cpp
133
+ -rw-r--r-- 1 root root 151 Sep 12 01:46 test编译的函数_@3bf4501e0408a243.h
134
+ -rwxr-xr-x 1 root root 15656 Sep 12 01:46 test编译的函数_@3bf4501e0408a243.so
135
+
135
136
  ```
136
137
  ## 5. test_add_@3ecbfe0013e83ebc.cpp
137
138
  ```c++
@@ -4,48 +4,7 @@
4
4
  ```
5
5
  pip install l0n0lc
6
6
  ```
7
- ## 2. 运行hello_world.py
8
- ```
9
- uv run tests/hello_world.py
10
- # 输入: b'1\n2\n100\n101\n'
11
- ```
12
- ```bash
13
- 输出map:
14
- c 3
15
- a 1
16
- b 2
17
- 输出list:
18
- 0 134
19
- 1 3
20
- 2 2
21
- Hello World 13 3
22
- test_other_fn 10
23
- test编译的函数 39
24
- 请输入>>>输入的 1 小于等于100
25
- 请输入>>>输入的 2 小于等于100
26
- 请输入>>>输入的 100 小于等于100
27
- 请输入>>>结果: 241
28
-
29
- ```
30
-
31
- ## 3. 查看输出文件
32
- ```bash
33
- ls -al ./l0n0lcoutput
34
- total 96
35
- drwxr-xr-x 2 root root 4096 Sep 12 01:42 .
36
- drwxrwxrwx 11 1000 1000 4096 Sep 12 01:14 ..
37
- -rw-r--r-- 1 root root 1233 Sep 12 01:42 test_add_@3ecbfe0013e83ebc.cpp
38
- -rw-r--r-- 1 root root 246 Sep 12 01:42 test_add_@3ecbfe0013e83ebc.h
39
- -rwxr-xr-x 1 root root 29904 Sep 12 01:42 test_add_@3ecbfe0013e83ebc.so
40
- -rw-r--r-- 1 root root 121 Sep 12 01:42 test_other_fn_@75fdd928ab58a8e3.cpp
41
- -rw-r--r-- 1 root root 93 Sep 12 01:42 test_other_fn_@75fdd928ab58a8e3.h
42
- -rwxr-xr-x 1 root root 15616 Sep 12 01:42 test_other_fn_@75fdd928ab58a8e3.so
43
- -rw-r--r-- 1 root root 185 Sep 12 01:14 test编译的函数_@3bf4501e0408a243.cpp
44
- -rw-r--r-- 1 root root 151 Sep 12 01:14 test编译的函数_@3bf4501e0408a243.h
45
- -rwxr-xr-x 1 root root 15656 Sep 12 01:14 test编译的函数_@3bf4501e0408a243.so
46
-
47
- ```
48
- ## 4. hello_world.py
7
+ ## 2. hello_world.py
49
8
  ```python
50
9
  import l0n0lc as lc
51
10
  import math
@@ -122,6 +81,48 @@ def test_add(a: int, b: int) -> int:
122
81
 
123
82
  print('结果:', test_add(1, 3))
124
83
 
84
+ ```
85
+
86
+ ## 3. 运行hello_world.py
87
+ ```
88
+ uv run tests/hello_world.py
89
+ # 输入: b'1\n2\n100\n101\n'
90
+ ```
91
+ ```bash
92
+ 输出map:
93
+ c 3
94
+ a 1
95
+ b 2
96
+ 输出list:
97
+ 0 134
98
+ 1 3
99
+ 2 2
100
+ Hello World 13 3
101
+ test_other_fn 10
102
+ test编译的函数 39
103
+ 请输入>>>输入的 1 小于等于100
104
+ 请输入>>>输入的 2 小于等于100
105
+ 请输入>>>输入的 100 小于等于100
106
+ 请输入>>>结果: 241
107
+
108
+ ```
109
+
110
+ ## 4. 查看输出文件
111
+ ```bash
112
+ ls -al ./l0n0lcoutput
113
+ total 96
114
+ drwxr-xr-x 2 root root 4096 Sep 12 01:46 .
115
+ drwxrwxrwx 11 1000 1000 4096 Sep 12 01:46 ..
116
+ -rw-r--r-- 1 root root 1233 Sep 12 01:46 test_add_@3ecbfe0013e83ebc.cpp
117
+ -rw-r--r-- 1 root root 246 Sep 12 01:46 test_add_@3ecbfe0013e83ebc.h
118
+ -rwxr-xr-x 1 root root 29904 Sep 12 01:46 test_add_@3ecbfe0013e83ebc.so
119
+ -rw-r--r-- 1 root root 121 Sep 12 01:46 test_other_fn_@75fdd928ab58a8e3.cpp
120
+ -rw-r--r-- 1 root root 93 Sep 12 01:46 test_other_fn_@75fdd928ab58a8e3.h
121
+ -rwxr-xr-x 1 root root 15616 Sep 12 01:46 test_other_fn_@75fdd928ab58a8e3.so
122
+ -rw-r--r-- 1 root root 185 Sep 12 01:46 test编译的函数_@3bf4501e0408a243.cpp
123
+ -rw-r--r-- 1 root root 151 Sep 12 01:46 test编译的函数_@3bf4501e0408a243.h
124
+ -rwxr-xr-x 1 root root 15656 Sep 12 01:46 test编译的函数_@3bf4501e0408a243.so
125
+
125
126
  ```
126
127
  ## 5. test_add_@3ecbfe0013e83ebc.cpp
127
128
  ```c++
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: l0n0lc
3
- Version: 0.8.1
3
+ Version: 0.8.2
4
4
  Summary: 一个将python函数翻译为c++函数并运行的jit编译器
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Requires-Python: >=3.10
@@ -14,48 +14,7 @@ Dynamic: license-file
14
14
  ```
15
15
  pip install l0n0lc
16
16
  ```
17
- ## 2. 运行hello_world.py
18
- ```
19
- uv run tests/hello_world.py
20
- # 输入: b'1\n2\n100\n101\n'
21
- ```
22
- ```bash
23
- 输出map:
24
- c 3
25
- a 1
26
- b 2
27
- 输出list:
28
- 0 134
29
- 1 3
30
- 2 2
31
- Hello World 13 3
32
- test_other_fn 10
33
- test编译的函数 39
34
- 请输入>>>输入的 1 小于等于100
35
- 请输入>>>输入的 2 小于等于100
36
- 请输入>>>输入的 100 小于等于100
37
- 请输入>>>结果: 241
38
-
39
- ```
40
-
41
- ## 3. 查看输出文件
42
- ```bash
43
- ls -al ./l0n0lcoutput
44
- total 96
45
- drwxr-xr-x 2 root root 4096 Sep 12 01:42 .
46
- drwxrwxrwx 11 1000 1000 4096 Sep 12 01:14 ..
47
- -rw-r--r-- 1 root root 1233 Sep 12 01:42 test_add_@3ecbfe0013e83ebc.cpp
48
- -rw-r--r-- 1 root root 246 Sep 12 01:42 test_add_@3ecbfe0013e83ebc.h
49
- -rwxr-xr-x 1 root root 29904 Sep 12 01:42 test_add_@3ecbfe0013e83ebc.so
50
- -rw-r--r-- 1 root root 121 Sep 12 01:42 test_other_fn_@75fdd928ab58a8e3.cpp
51
- -rw-r--r-- 1 root root 93 Sep 12 01:42 test_other_fn_@75fdd928ab58a8e3.h
52
- -rwxr-xr-x 1 root root 15616 Sep 12 01:42 test_other_fn_@75fdd928ab58a8e3.so
53
- -rw-r--r-- 1 root root 185 Sep 12 01:14 test编译的函数_@3bf4501e0408a243.cpp
54
- -rw-r--r-- 1 root root 151 Sep 12 01:14 test编译的函数_@3bf4501e0408a243.h
55
- -rwxr-xr-x 1 root root 15656 Sep 12 01:14 test编译的函数_@3bf4501e0408a243.so
56
-
57
- ```
58
- ## 4. hello_world.py
17
+ ## 2. hello_world.py
59
18
  ```python
60
19
  import l0n0lc as lc
61
20
  import math
@@ -132,6 +91,48 @@ def test_add(a: int, b: int) -> int:
132
91
 
133
92
  print('结果:', test_add(1, 3))
134
93
 
94
+ ```
95
+
96
+ ## 3. 运行hello_world.py
97
+ ```
98
+ uv run tests/hello_world.py
99
+ # 输入: b'1\n2\n100\n101\n'
100
+ ```
101
+ ```bash
102
+ 输出map:
103
+ c 3
104
+ a 1
105
+ b 2
106
+ 输出list:
107
+ 0 134
108
+ 1 3
109
+ 2 2
110
+ Hello World 13 3
111
+ test_other_fn 10
112
+ test编译的函数 39
113
+ 请输入>>>输入的 1 小于等于100
114
+ 请输入>>>输入的 2 小于等于100
115
+ 请输入>>>输入的 100 小于等于100
116
+ 请输入>>>结果: 241
117
+
118
+ ```
119
+
120
+ ## 4. 查看输出文件
121
+ ```bash
122
+ ls -al ./l0n0lcoutput
123
+ total 96
124
+ drwxr-xr-x 2 root root 4096 Sep 12 01:46 .
125
+ drwxrwxrwx 11 1000 1000 4096 Sep 12 01:46 ..
126
+ -rw-r--r-- 1 root root 1233 Sep 12 01:46 test_add_@3ecbfe0013e83ebc.cpp
127
+ -rw-r--r-- 1 root root 246 Sep 12 01:46 test_add_@3ecbfe0013e83ebc.h
128
+ -rwxr-xr-x 1 root root 29904 Sep 12 01:46 test_add_@3ecbfe0013e83ebc.so
129
+ -rw-r--r-- 1 root root 121 Sep 12 01:46 test_other_fn_@75fdd928ab58a8e3.cpp
130
+ -rw-r--r-- 1 root root 93 Sep 12 01:46 test_other_fn_@75fdd928ab58a8e3.h
131
+ -rwxr-xr-x 1 root root 15616 Sep 12 01:46 test_other_fn_@75fdd928ab58a8e3.so
132
+ -rw-r--r-- 1 root root 185 Sep 12 01:46 test编译的函数_@3bf4501e0408a243.cpp
133
+ -rw-r--r-- 1 root root 151 Sep 12 01:46 test编译的函数_@3bf4501e0408a243.h
134
+ -rwxr-xr-x 1 root root 15656 Sep 12 01:46 test编译的函数_@3bf4501e0408a243.so
135
+
135
136
  ```
136
137
  ## 5. test_add_@3ecbfe0013e83ebc.cpp
137
138
  ```c++
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "l0n0lc"
3
- version = "0.8.1"
3
+ version = "0.8.2"
4
4
  description = "一个将python函数翻译为c++函数并运行的jit编译器"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes