l0n0lc 0.8.8__py3-none-any.whl → 0.9.0__py3-none-any.whl
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/c/345/237/272/347/241/200/345/244/204/347/220/206.py +1 -1
- {l0n0lc-0.8.8.dist-info → l0n0lc-0.9.0.dist-info}/METADATA +23 -57
- {l0n0lc-0.8.8.dist-info → l0n0lc-0.9.0.dist-info}/RECORD +6 -6
- {l0n0lc-0.8.8.dist-info → l0n0lc-0.9.0.dist-info}/WHEEL +0 -0
- {l0n0lc-0.8.8.dist-info → l0n0lc-0.9.0.dist-info}/licenses/LICENSE +0 -0
- {l0n0lc-0.8.8.dist-info → l0n0lc-0.9.0.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: l0n0lc
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.9.0
|
4
4
|
Summary: 一个将python函数翻译为c++函数并运行的jit编译器
|
5
5
|
Classifier: Programming Language :: Python :: 3
|
6
6
|
Requires-Python: >=3.10
|
@@ -234,54 +234,20 @@ vv: 1
|
|
234
234
|
## 4. 查看输出文件
|
235
235
|
```bash
|
236
236
|
ls -al ./l0n0lcoutput
|
237
|
-
total 160
|
238
|
-
drwxr-xr-x 2 root root 4096 Sep 18 01:09 .
|
239
|
-
drwxrwxrwx 11 1000 1000 4096 Sep 17 03:11 ..
|
240
|
-
-rw-r--r-- 1 root root 96 Sep 18 01:05 helper_@a9eebb1639a5f08c.cpp
|
241
|
-
-rw-r--r-- 1 root root 88 Sep 18 01:05 helper_@a9eebb1639a5f08c.h
|
242
|
-
-rwxr-xr-x 1 root root 15600 Sep 18 01:05 helper_@a9eebb1639a5f08c.so
|
243
|
-
-rw-r--r-- 1 root root 1693 Sep 18 01:09 jit_all_ops_@0ec883892076cd03.cpp
|
244
|
-
-rw-r--r-- 1 root root 167 Sep 18 01:09 jit_all_ops_@0ec883892076cd03.h
|
245
|
-
-rwxr-xr-x 1 root root 23520 Sep 18 01:09 jit_all_ops_@0ec883892076cd03.so
|
246
|
-
-rw-r--r-- 1 root root 1466 Sep 18 01:09 test_add_@122c4be59097d472.cpp
|
247
|
-
-rw-r--r-- 1 root root 302 Sep 18 01:09 test_add_@122c4be59097d472.h
|
248
|
-
-rwxr-xr-x 1 root root 40264 Sep 18 01:09 test_add_@122c4be59097d472.so
|
249
|
-
-rw-r--r-- 1 root root 121 Sep 18 01:09 test_other_fn_@75fdd928ab58a8e3.cpp
|
250
|
-
-rw-r--r-- 1 root root 106 Sep 18 01:09 test_other_fn_@75fdd928ab58a8e3.h
|
251
|
-
-rwxr-xr-x 1 root root 15616 Sep 18 01:09 test_other_fn_@75fdd928ab58a8e3.so
|
252
|
-
-rw-r--r-- 1 root root 185 Sep 18 01:07 test编译的函数_@3bf4501e0408a243.cpp
|
253
|
-
-rw-r--r-- 1 root root 164 Sep 18 01:07 test编译的函数_@3bf4501e0408a243.h
|
254
|
-
-rwxr-xr-x 1 root root 15656 Sep 18 01:07 test编译的函数_@3bf4501e0408a243.so
|
255
237
|
|
256
238
|
```
|
257
|
-
## 5.
|
258
|
-
```c++
|
259
|
-
#include "helper_@a9eebb1639a5f08c.h"
|
260
|
-
extern "C" int16_t helper (int16_t p)
|
261
|
-
{
|
262
|
-
return p * 2;
|
263
|
-
}
|
264
|
-
|
265
|
-
```
|
266
|
-
## 6. helper_@a9eebb1639a5f08c.h
|
267
|
-
```c++
|
268
|
-
#pragma once
|
269
|
-
#include <cstdint>
|
270
|
-
#include <string>
|
271
|
-
extern "C" int16_t helper (int16_t p);
|
272
|
-
```
|
273
|
-
## 7. jit_all_ops_@0ec883892076cd03.cpp
|
239
|
+
## 5. jit_all_ops_@0ec883892076cd03.cpp
|
274
240
|
```c++
|
275
241
|
#include "jit_all_ops_@0ec883892076cd03.h"
|
276
|
-
extern "C"
|
242
|
+
extern "C" int64_t jit_all_ops (int64_t a, int64_t b)
|
277
243
|
{
|
278
244
|
auto x = 42;
|
279
|
-
auto y = ((
|
245
|
+
auto y = ((int64_t)(a + b));
|
280
246
|
auto z = 3.14;
|
281
247
|
auto flag = true;
|
282
|
-
|
283
|
-
|
284
|
-
std::unordered_map<
|
248
|
+
int64_t nums[] = {1,2,3};
|
249
|
+
int64_t tup[] = {4,5};
|
250
|
+
std::unordered_map<int64_t, int64_t> mp = {{ 1, 10 },{ 2, 20 }};
|
285
251
|
auto pos = +a;
|
286
252
|
auto neg = -b;
|
287
253
|
auto inv = ~a;
|
@@ -367,7 +333,7 @@ extern "C" int16_t jit_all_ops (int16_t a, int16_t b)
|
|
367
333
|
}
|
368
334
|
|
369
335
|
```
|
370
|
-
##
|
336
|
+
## 6. jit_all_ops_@0ec883892076cd03.h
|
371
337
|
```c++
|
372
338
|
#pragma once
|
373
339
|
#include <cstdint>
|
@@ -375,12 +341,12 @@ extern "C" int16_t jit_all_ops (int16_t a, int16_t b)
|
|
375
341
|
#include <string>
|
376
342
|
#include <unordered_map>
|
377
343
|
#include <vector>
|
378
|
-
extern "C"
|
344
|
+
extern "C" int64_t jit_all_ops (int64_t a, int64_t b);
|
379
345
|
```
|
380
|
-
##
|
346
|
+
## 7. test_add_@122c4be59097d472.cpp
|
381
347
|
```c++
|
382
348
|
#include "test_add_@122c4be59097d472.h"
|
383
|
-
extern "C"
|
349
|
+
extern "C" int64_t test_add (int64_t a, int64_t b)
|
384
350
|
{
|
385
351
|
if ((a > 1))
|
386
352
|
{
|
@@ -398,7 +364,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
|
|
398
364
|
}
|
399
365
|
|
400
366
|
a = std::ceil(12.5);;
|
401
|
-
std::unordered_map<std::string,
|
367
|
+
std::unordered_map<std::string, int64_t> cc = {{ u8"a", 1 },{ u8"b", 2 }};
|
402
368
|
cc[u8"c"] = 3;
|
403
369
|
std::cout<< u8"输出map:" << " "<< std::endl;;
|
404
370
|
for (auto ii : cc)
|
@@ -406,7 +372,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
|
|
406
372
|
std::cout<< ii.first << " "<< ii.second << " "<< std::endl;;
|
407
373
|
}
|
408
374
|
|
409
|
-
|
375
|
+
int64_t aa[] = {1,3,2};
|
410
376
|
aa[0] = 134;
|
411
377
|
std::cout<< u8"输出list:" << " "<< std::endl;;
|
412
378
|
for (int64_t i = 0; i < 3; ++i)
|
@@ -442,7 +408,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
|
|
442
408
|
}
|
443
409
|
|
444
410
|
```
|
445
|
-
##
|
411
|
+
## 8. test_add_@122c4be59097d472.h
|
446
412
|
```c++
|
447
413
|
#pragma once
|
448
414
|
#include "jit_all_ops_@0ec883892076cd03.h"
|
@@ -453,37 +419,37 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
|
|
453
419
|
#include <iostream>
|
454
420
|
#include <string>
|
455
421
|
#include <unordered_map>
|
456
|
-
extern "C"
|
422
|
+
extern "C" int64_t test_add (int64_t a, int64_t b);
|
457
423
|
```
|
458
|
-
##
|
424
|
+
## 9. test_other_fn_@75fdd928ab58a8e3.cpp
|
459
425
|
```c++
|
460
426
|
#include "test_other_fn_@75fdd928ab58a8e3.h"
|
461
|
-
extern "C"
|
427
|
+
extern "C" int64_t test_other_fn (int64_t a, int64_t b)
|
462
428
|
{
|
463
429
|
return a - b;
|
464
430
|
}
|
465
431
|
|
466
432
|
```
|
467
|
-
##
|
433
|
+
## 10. test_other_fn_@75fdd928ab58a8e3.h
|
468
434
|
```c++
|
469
435
|
#pragma once
|
470
436
|
#include <cstdint>
|
471
437
|
#include <string>
|
472
|
-
extern "C"
|
438
|
+
extern "C" int64_t test_other_fn (int64_t a, int64_t b);
|
473
439
|
```
|
474
|
-
##
|
440
|
+
## 11. test编译的函数_@3bf4501e0408a243.cpp
|
475
441
|
```c++
|
476
442
|
#include "test编译的函数_@3bf4501e0408a243.h"
|
477
|
-
extern "C"
|
443
|
+
extern "C" int64_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int64_t a, int64_t b)
|
478
444
|
{
|
479
445
|
return a * b;
|
480
446
|
}
|
481
447
|
|
482
448
|
```
|
483
|
-
##
|
449
|
+
## 12. test编译的函数_@3bf4501e0408a243.h
|
484
450
|
```c++
|
485
451
|
#pragma once
|
486
452
|
#include <cstdint>
|
487
453
|
#include <string>
|
488
|
-
extern "C"
|
454
|
+
extern "C" int64_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int64_t a, int64_t b);
|
489
455
|
```
|
@@ -1,12 +1,12 @@
|
|
1
1
|
l0n0lc/StdList.py,sha256=0NTIpaRrNHaCiLrRbEVob21pZHa8S8rfaBRALPT-tD0,889
|
2
2
|
l0n0lc/StdMap.py,sha256=TIVKqhT078cjLIM0Zlq-TwGFSy-KwOyJe00BLFPVxr8,735
|
3
3
|
l0n0lc/__init__.py,sha256=fUC6TMeN_fEL7HDazrBEdoWOQkXi5uSGZb7LZj6juog,137
|
4
|
-
l0n0lc/c基础处理.py,sha256=
|
4
|
+
l0n0lc/c基础处理.py,sha256=GrCPZpLsyfQD8XZQhOCb5y8v9NCZ6bU4C_xfJGx-pvQ,5723
|
5
5
|
l0n0lc/jit.py,sha256=UG5CwhmtD9BJWWiWreFxDCTCFgKgjSOqREhaZuW3sBU,25619
|
6
6
|
l0n0lc/编译.py,sha256=Ty4gPDHAB1jn8LgnE4w3R06bOAEeYr8iwqahYf6QeHI,2154
|
7
7
|
l0n0lc/通用.py,sha256=RkqP9cMhKhl2h4YxOpAWFFftIPXLZTYMyOOD1PuB59M,4630
|
8
|
-
l0n0lc-0.
|
9
|
-
l0n0lc-0.
|
10
|
-
l0n0lc-0.
|
11
|
-
l0n0lc-0.
|
12
|
-
l0n0lc-0.
|
8
|
+
l0n0lc-0.9.0.dist-info/licenses/LICENSE,sha256=1L-MAjulZ3kpbYwsJtlXpDVITRxykna2Ecg_521YfkA,1093
|
9
|
+
l0n0lc-0.9.0.dist-info/METADATA,sha256=axmjNjXlCtHTDCS86whKCfwdkYntDqm5l6AtYabsL-Y,8926
|
10
|
+
l0n0lc-0.9.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
11
|
+
l0n0lc-0.9.0.dist-info/top_level.txt,sha256=Q21D_eEY_-xgRUPwATGp9YDKSBO4w_7MI2MYxQI1aT4,7
|
12
|
+
l0n0lc-0.9.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|