l0n0lc 0.9.5__tar.gz → 0.9.6__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.
- {l0n0lc-0.9.5 → l0n0lc-0.9.6}/PKG-INFO +15 -15
- {l0n0lc-0.9.5 → l0n0lc-0.9.6}/README.md +14 -14
- {l0n0lc-0.9.5 → l0n0lc-0.9.6}/l0n0lc/jit.py +1 -2
- {l0n0lc-0.9.5 → l0n0lc-0.9.6}/l0n0lc.egg-info/PKG-INFO +15 -15
- {l0n0lc-0.9.5 → l0n0lc-0.9.6}/pyproject.toml +1 -1
- {l0n0lc-0.9.5 → l0n0lc-0.9.6}/LICENSE +0 -0
- {l0n0lc-0.9.5 → l0n0lc-0.9.6}/l0n0lc/StdList.py +0 -0
- {l0n0lc-0.9.5 → l0n0lc-0.9.6}/l0n0lc/StdMap.py +0 -0
- {l0n0lc-0.9.5 → l0n0lc-0.9.6}/l0n0lc/__init__.py +0 -0
- {l0n0lc-0.9.5 → l0n0lc-0.9.6}/l0n0lc/c/345/237/272/347/241/200/345/244/204/347/220/206.py" +0 -0
- {l0n0lc-0.9.5 → l0n0lc-0.9.6}/l0n0lc//347/274/226/350/257/221.py" +0 -0
- {l0n0lc-0.9.5 → l0n0lc-0.9.6}/l0n0lc//351/200/232/347/224/250.py" +0 -0
- {l0n0lc-0.9.5 → l0n0lc-0.9.6}/l0n0lc.egg-info/SOURCES.txt +0 -0
- {l0n0lc-0.9.5 → l0n0lc-0.9.6}/l0n0lc.egg-info/dependency_links.txt +0 -0
- {l0n0lc-0.9.5 → l0n0lc-0.9.6}/l0n0lc.egg-info/top_level.txt +0 -0
- {l0n0lc-0.9.5 → l0n0lc-0.9.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: l0n0lc
|
3
|
-
Version: 0.9.
|
3
|
+
Version: 0.9.6
|
4
4
|
Summary: 一个将python函数翻译为c++函数并运行的jit编译器
|
5
5
|
Classifier: Programming Language :: Python :: 3
|
6
6
|
Requires-Python: >=3.10
|
@@ -235,20 +235,20 @@ vv: 1
|
|
235
235
|
```bash
|
236
236
|
ls -al ./l0n0lcoutput
|
237
237
|
total 136
|
238
|
-
drwxr-xr-x 2 root root 4096 Sep 27 02:
|
239
|
-
drwxrwxrwx 11 1000 1000 4096 Sep 27 02:
|
240
|
-
-rw-r--r-- 1 root root 1811 Sep 27 02:
|
241
|
-
-rw-r--r-- 1 root root 167 Sep 27 02:
|
242
|
-
-rwxr-xr-x 1 root root 23584 Sep 27 02:
|
243
|
-
-rw-r--r-- 1 root root 1531 Sep 27 02:
|
244
|
-
-rw-r--r-- 1 root root 398 Sep 27 02:
|
245
|
-
-rwxr-xr-x 1 root root 40408 Sep 27 02:
|
246
|
-
-rw-r--r-- 1 root root 155 Sep 27 02:
|
247
|
-
-rw-r--r-- 1 root root 106 Sep 27 02:
|
248
|
-
-rwxr-xr-x 1 root root 15648 Sep 27 02:
|
249
|
-
-rw-r--r-- 1 root root 219 Sep 27 02:
|
250
|
-
-rw-r--r-- 1 root root 164 Sep 27 02:
|
251
|
-
-rwxr-xr-x 1 root root 15688 Sep 27 02:
|
238
|
+
drwxr-xr-x 2 root root 4096 Sep 27 02:40 .
|
239
|
+
drwxrwxrwx 11 1000 1000 4096 Sep 27 02:40 ..
|
240
|
+
-rw-r--r-- 1 root root 1811 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_jit_all_ops_@7801528c3d61baf7.cpp
|
241
|
+
-rw-r--r-- 1 root root 167 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_jit_all_ops_@7801528c3d61baf7.h
|
242
|
+
-rwxr-xr-x 1 root root 23584 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_jit_all_ops_@7801528c3d61baf7.so
|
243
|
+
-rw-r--r-- 1 root root 1531 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test_add_@469de6acaaabc570.cpp
|
244
|
+
-rw-r--r-- 1 root root 398 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test_add_@469de6acaaabc570.h
|
245
|
+
-rwxr-xr-x 1 root root 40408 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test_add_@469de6acaaabc570.so
|
246
|
+
-rw-r--r-- 1 root root 155 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test_other_fn_@75fdd928ab58a8e3.cpp
|
247
|
+
-rw-r--r-- 1 root root 106 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test_other_fn_@75fdd928ab58a8e3.h
|
248
|
+
-rwxr-xr-x 1 root root 15648 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test_other_fn_@75fdd928ab58a8e3.so
|
249
|
+
-rw-r--r-- 1 root root 219 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test编译的函数_@3bf4501e0408a243.cpp
|
250
|
+
-rw-r--r-- 1 root root 164 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test编译的函数_@3bf4501e0408a243.h
|
251
|
+
-rwxr-xr-x 1 root root 15688 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test编译的函数_@3bf4501e0408a243.so
|
252
252
|
|
253
253
|
```
|
254
254
|
## 5. c31f68e99ed4ce3c_hello_world.py_jit_all_ops_@7801528c3d61baf7.cpp
|
@@ -225,20 +225,20 @@ vv: 1
|
|
225
225
|
```bash
|
226
226
|
ls -al ./l0n0lcoutput
|
227
227
|
total 136
|
228
|
-
drwxr-xr-x 2 root root 4096 Sep 27 02:
|
229
|
-
drwxrwxrwx 11 1000 1000 4096 Sep 27 02:
|
230
|
-
-rw-r--r-- 1 root root 1811 Sep 27 02:
|
231
|
-
-rw-r--r-- 1 root root 167 Sep 27 02:
|
232
|
-
-rwxr-xr-x 1 root root 23584 Sep 27 02:
|
233
|
-
-rw-r--r-- 1 root root 1531 Sep 27 02:
|
234
|
-
-rw-r--r-- 1 root root 398 Sep 27 02:
|
235
|
-
-rwxr-xr-x 1 root root 40408 Sep 27 02:
|
236
|
-
-rw-r--r-- 1 root root 155 Sep 27 02:
|
237
|
-
-rw-r--r-- 1 root root 106 Sep 27 02:
|
238
|
-
-rwxr-xr-x 1 root root 15648 Sep 27 02:
|
239
|
-
-rw-r--r-- 1 root root 219 Sep 27 02:
|
240
|
-
-rw-r--r-- 1 root root 164 Sep 27 02:
|
241
|
-
-rwxr-xr-x 1 root root 15688 Sep 27 02:
|
228
|
+
drwxr-xr-x 2 root root 4096 Sep 27 02:40 .
|
229
|
+
drwxrwxrwx 11 1000 1000 4096 Sep 27 02:40 ..
|
230
|
+
-rw-r--r-- 1 root root 1811 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_jit_all_ops_@7801528c3d61baf7.cpp
|
231
|
+
-rw-r--r-- 1 root root 167 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_jit_all_ops_@7801528c3d61baf7.h
|
232
|
+
-rwxr-xr-x 1 root root 23584 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_jit_all_ops_@7801528c3d61baf7.so
|
233
|
+
-rw-r--r-- 1 root root 1531 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test_add_@469de6acaaabc570.cpp
|
234
|
+
-rw-r--r-- 1 root root 398 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test_add_@469de6acaaabc570.h
|
235
|
+
-rwxr-xr-x 1 root root 40408 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test_add_@469de6acaaabc570.so
|
236
|
+
-rw-r--r-- 1 root root 155 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test_other_fn_@75fdd928ab58a8e3.cpp
|
237
|
+
-rw-r--r-- 1 root root 106 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test_other_fn_@75fdd928ab58a8e3.h
|
238
|
+
-rwxr-xr-x 1 root root 15648 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test_other_fn_@75fdd928ab58a8e3.so
|
239
|
+
-rw-r--r-- 1 root root 219 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test编译的函数_@3bf4501e0408a243.cpp
|
240
|
+
-rw-r--r-- 1 root root 164 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test编译的函数_@3bf4501e0408a243.h
|
241
|
+
-rwxr-xr-x 1 root root 15688 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test编译的函数_@3bf4501e0408a243.so
|
242
242
|
|
243
243
|
```
|
244
244
|
## 5. c31f68e99ed4ce3c_hello_world.py_jit_all_ops_@7801528c3d61baf7.cpp
|
@@ -377,9 +377,8 @@ class py2cpp编译器(ast.NodeVisitor):
|
|
377
377
|
return c获取索引项目(对象, 切片)
|
378
378
|
|
379
379
|
def visit_FunctionDef(self, node: ast.FunctionDef) -> Any:
|
380
|
-
self.visit_核函数所有参数(node.args)
|
381
|
-
|
382
380
|
with self.花括号:
|
381
|
+
self.visit_核函数所有参数(node.args)
|
383
382
|
self.visit_核函数体(node.body)
|
384
383
|
|
385
384
|
# 读取返回类型
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: l0n0lc
|
3
|
-
Version: 0.9.
|
3
|
+
Version: 0.9.6
|
4
4
|
Summary: 一个将python函数翻译为c++函数并运行的jit编译器
|
5
5
|
Classifier: Programming Language :: Python :: 3
|
6
6
|
Requires-Python: >=3.10
|
@@ -235,20 +235,20 @@ vv: 1
|
|
235
235
|
```bash
|
236
236
|
ls -al ./l0n0lcoutput
|
237
237
|
total 136
|
238
|
-
drwxr-xr-x 2 root root 4096 Sep 27 02:
|
239
|
-
drwxrwxrwx 11 1000 1000 4096 Sep 27 02:
|
240
|
-
-rw-r--r-- 1 root root 1811 Sep 27 02:
|
241
|
-
-rw-r--r-- 1 root root 167 Sep 27 02:
|
242
|
-
-rwxr-xr-x 1 root root 23584 Sep 27 02:
|
243
|
-
-rw-r--r-- 1 root root 1531 Sep 27 02:
|
244
|
-
-rw-r--r-- 1 root root 398 Sep 27 02:
|
245
|
-
-rwxr-xr-x 1 root root 40408 Sep 27 02:
|
246
|
-
-rw-r--r-- 1 root root 155 Sep 27 02:
|
247
|
-
-rw-r--r-- 1 root root 106 Sep 27 02:
|
248
|
-
-rwxr-xr-x 1 root root 15648 Sep 27 02:
|
249
|
-
-rw-r--r-- 1 root root 219 Sep 27 02:
|
250
|
-
-rw-r--r-- 1 root root 164 Sep 27 02:
|
251
|
-
-rwxr-xr-x 1 root root 15688 Sep 27 02:
|
238
|
+
drwxr-xr-x 2 root root 4096 Sep 27 02:40 .
|
239
|
+
drwxrwxrwx 11 1000 1000 4096 Sep 27 02:40 ..
|
240
|
+
-rw-r--r-- 1 root root 1811 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_jit_all_ops_@7801528c3d61baf7.cpp
|
241
|
+
-rw-r--r-- 1 root root 167 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_jit_all_ops_@7801528c3d61baf7.h
|
242
|
+
-rwxr-xr-x 1 root root 23584 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_jit_all_ops_@7801528c3d61baf7.so
|
243
|
+
-rw-r--r-- 1 root root 1531 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test_add_@469de6acaaabc570.cpp
|
244
|
+
-rw-r--r-- 1 root root 398 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test_add_@469de6acaaabc570.h
|
245
|
+
-rwxr-xr-x 1 root root 40408 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test_add_@469de6acaaabc570.so
|
246
|
+
-rw-r--r-- 1 root root 155 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test_other_fn_@75fdd928ab58a8e3.cpp
|
247
|
+
-rw-r--r-- 1 root root 106 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test_other_fn_@75fdd928ab58a8e3.h
|
248
|
+
-rwxr-xr-x 1 root root 15648 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test_other_fn_@75fdd928ab58a8e3.so
|
249
|
+
-rw-r--r-- 1 root root 219 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test编译的函数_@3bf4501e0408a243.cpp
|
250
|
+
-rw-r--r-- 1 root root 164 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test编译的函数_@3bf4501e0408a243.h
|
251
|
+
-rwxr-xr-x 1 root root 15688 Sep 27 02:40 c31f68e99ed4ce3c_hello_world.py_test编译的函数_@3bf4501e0408a243.so
|
252
252
|
|
253
253
|
```
|
254
254
|
## 5. c31f68e99ed4ce3c_hello_world.py_jit_all_ops_@7801528c3d61baf7.cpp
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|