l0n0lc 0.8.9__tar.gz → 0.9.0__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.9
3
+ Version: 0.9.0
4
4
  Summary: 一个将python函数翻译为c++函数并运行的jit编译器
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Requires-Python: >=3.10
@@ -239,15 +239,15 @@ ls -al ./l0n0lcoutput
239
239
  ## 5. jit_all_ops_@0ec883892076cd03.cpp
240
240
  ```c++
241
241
  #include "jit_all_ops_@0ec883892076cd03.h"
242
- extern "C" int16_t jit_all_ops (int16_t a, int16_t b)
242
+ extern "C" int64_t jit_all_ops (int64_t a, int64_t b)
243
243
  {
244
244
  auto x = 42;
245
- auto y = ((int16_t)(a + b));
245
+ auto y = ((int64_t)(a + b));
246
246
  auto z = 3.14;
247
247
  auto flag = true;
248
- int16_t nums[] = {1,2,3};
249
- int16_t tup[] = {4,5};
250
- std::unordered_map<int16_t, int16_t> mp = {{ 1, 10 },{ 2, 20 }};
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 }};
251
251
  auto pos = +a;
252
252
  auto neg = -b;
253
253
  auto inv = ~a;
@@ -341,12 +341,12 @@ extern "C" int16_t jit_all_ops (int16_t a, int16_t b)
341
341
  #include <string>
342
342
  #include <unordered_map>
343
343
  #include <vector>
344
- extern "C" int16_t jit_all_ops (int16_t a, int16_t b);
344
+ extern "C" int64_t jit_all_ops (int64_t a, int64_t b);
345
345
  ```
346
346
  ## 7. test_add_@122c4be59097d472.cpp
347
347
  ```c++
348
348
  #include "test_add_@122c4be59097d472.h"
349
- extern "C" int16_t test_add (int16_t a, int16_t b)
349
+ extern "C" int64_t test_add (int64_t a, int64_t b)
350
350
  {
351
351
  if ((a > 1))
352
352
  {
@@ -364,7 +364,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
364
364
  }
365
365
 
366
366
  a = std::ceil(12.5);;
367
- std::unordered_map<std::string, int16_t> cc = {{ u8"a", 1 },{ u8"b", 2 }};
367
+ std::unordered_map<std::string, int64_t> cc = {{ u8"a", 1 },{ u8"b", 2 }};
368
368
  cc[u8"c"] = 3;
369
369
  std::cout<< u8"输出map:" << " "<< std::endl;;
370
370
  for (auto ii : cc)
@@ -372,7 +372,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
372
372
  std::cout<< ii.first << " "<< ii.second << " "<< std::endl;;
373
373
  }
374
374
 
375
- int16_t aa[] = {1,3,2};
375
+ int64_t aa[] = {1,3,2};
376
376
  aa[0] = 134;
377
377
  std::cout<< u8"输出list:" << " "<< std::endl;;
378
378
  for (int64_t i = 0; i < 3; ++i)
@@ -419,12 +419,12 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
419
419
  #include <iostream>
420
420
  #include <string>
421
421
  #include <unordered_map>
422
- extern "C" int16_t test_add (int16_t a, int16_t b);
422
+ extern "C" int64_t test_add (int64_t a, int64_t b);
423
423
  ```
424
424
  ## 9. test_other_fn_@75fdd928ab58a8e3.cpp
425
425
  ```c++
426
426
  #include "test_other_fn_@75fdd928ab58a8e3.h"
427
- extern "C" int16_t test_other_fn (int16_t a, int16_t b)
427
+ extern "C" int64_t test_other_fn (int64_t a, int64_t b)
428
428
  {
429
429
  return a - b;
430
430
  }
@@ -435,12 +435,12 @@ extern "C" int16_t test_other_fn (int16_t a, int16_t b)
435
435
  #pragma once
436
436
  #include <cstdint>
437
437
  #include <string>
438
- extern "C" int16_t test_other_fn (int16_t a, int16_t b);
438
+ extern "C" int64_t test_other_fn (int64_t a, int64_t b);
439
439
  ```
440
440
  ## 11. test编译的函数_@3bf4501e0408a243.cpp
441
441
  ```c++
442
442
  #include "test编译的函数_@3bf4501e0408a243.h"
443
- extern "C" int16_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int16_t a, int16_t b)
443
+ extern "C" int64_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int64_t a, int64_t b)
444
444
  {
445
445
  return a * b;
446
446
  }
@@ -451,5 +451,5 @@ extern "C" int16_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e5
451
451
  #pragma once
452
452
  #include <cstdint>
453
453
  #include <string>
454
- extern "C" int16_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int16_t a, int16_t b);
454
+ extern "C" int64_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int64_t a, int64_t b);
455
455
  ```
@@ -229,15 +229,15 @@ ls -al ./l0n0lcoutput
229
229
  ## 5. jit_all_ops_@0ec883892076cd03.cpp
230
230
  ```c++
231
231
  #include "jit_all_ops_@0ec883892076cd03.h"
232
- extern "C" int16_t jit_all_ops (int16_t a, int16_t b)
232
+ extern "C" int64_t jit_all_ops (int64_t a, int64_t b)
233
233
  {
234
234
  auto x = 42;
235
- auto y = ((int16_t)(a + b));
235
+ auto y = ((int64_t)(a + b));
236
236
  auto z = 3.14;
237
237
  auto flag = true;
238
- int16_t nums[] = {1,2,3};
239
- int16_t tup[] = {4,5};
240
- std::unordered_map<int16_t, int16_t> mp = {{ 1, 10 },{ 2, 20 }};
238
+ int64_t nums[] = {1,2,3};
239
+ int64_t tup[] = {4,5};
240
+ std::unordered_map<int64_t, int64_t> mp = {{ 1, 10 },{ 2, 20 }};
241
241
  auto pos = +a;
242
242
  auto neg = -b;
243
243
  auto inv = ~a;
@@ -331,12 +331,12 @@ extern "C" int16_t jit_all_ops (int16_t a, int16_t b)
331
331
  #include <string>
332
332
  #include <unordered_map>
333
333
  #include <vector>
334
- extern "C" int16_t jit_all_ops (int16_t a, int16_t b);
334
+ extern "C" int64_t jit_all_ops (int64_t a, int64_t b);
335
335
  ```
336
336
  ## 7. test_add_@122c4be59097d472.cpp
337
337
  ```c++
338
338
  #include "test_add_@122c4be59097d472.h"
339
- extern "C" int16_t test_add (int16_t a, int16_t b)
339
+ extern "C" int64_t test_add (int64_t a, int64_t b)
340
340
  {
341
341
  if ((a > 1))
342
342
  {
@@ -354,7 +354,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
354
354
  }
355
355
 
356
356
  a = std::ceil(12.5);;
357
- std::unordered_map<std::string, int16_t> cc = {{ u8"a", 1 },{ u8"b", 2 }};
357
+ std::unordered_map<std::string, int64_t> cc = {{ u8"a", 1 },{ u8"b", 2 }};
358
358
  cc[u8"c"] = 3;
359
359
  std::cout<< u8"输出map:" << " "<< std::endl;;
360
360
  for (auto ii : cc)
@@ -362,7 +362,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
362
362
  std::cout<< ii.first << " "<< ii.second << " "<< std::endl;;
363
363
  }
364
364
 
365
- int16_t aa[] = {1,3,2};
365
+ int64_t aa[] = {1,3,2};
366
366
  aa[0] = 134;
367
367
  std::cout<< u8"输出list:" << " "<< std::endl;;
368
368
  for (int64_t i = 0; i < 3; ++i)
@@ -409,12 +409,12 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
409
409
  #include <iostream>
410
410
  #include <string>
411
411
  #include <unordered_map>
412
- extern "C" int16_t test_add (int16_t a, int16_t b);
412
+ extern "C" int64_t test_add (int64_t a, int64_t b);
413
413
  ```
414
414
  ## 9. test_other_fn_@75fdd928ab58a8e3.cpp
415
415
  ```c++
416
416
  #include "test_other_fn_@75fdd928ab58a8e3.h"
417
- extern "C" int16_t test_other_fn (int16_t a, int16_t b)
417
+ extern "C" int64_t test_other_fn (int64_t a, int64_t b)
418
418
  {
419
419
  return a - b;
420
420
  }
@@ -425,12 +425,12 @@ extern "C" int16_t test_other_fn (int16_t a, int16_t b)
425
425
  #pragma once
426
426
  #include <cstdint>
427
427
  #include <string>
428
- extern "C" int16_t test_other_fn (int16_t a, int16_t b);
428
+ extern "C" int64_t test_other_fn (int64_t a, int64_t b);
429
429
  ```
430
430
  ## 11. test编译的函数_@3bf4501e0408a243.cpp
431
431
  ```c++
432
432
  #include "test编译的函数_@3bf4501e0408a243.h"
433
- extern "C" int16_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int16_t a, int16_t b)
433
+ extern "C" int64_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int64_t a, int64_t b)
434
434
  {
435
435
  return a * b;
436
436
  }
@@ -441,5 +441,5 @@ extern "C" int16_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e5
441
441
  #pragma once
442
442
  #include <cstdint>
443
443
  #include <string>
444
- extern "C" int16_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int16_t a, int16_t b);
444
+ extern "C" int64_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int64_t a, int64_t b);
445
445
  ```
@@ -59,7 +59,7 @@ def py类型转ctypes类型(类型):
59
59
 
60
60
  额外py转c函数 = []
61
61
  py2c类型映射表 = {
62
- int: cpp类型.INT16_T,
62
+ int: cpp类型.INT64_T,
63
63
  float: cpp类型.FLOAT,
64
64
  str: cpp类型.STRING,
65
65
  bool: cpp类型.BOOL,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: l0n0lc
3
- Version: 0.8.9
3
+ Version: 0.9.0
4
4
  Summary: 一个将python函数翻译为c++函数并运行的jit编译器
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Requires-Python: >=3.10
@@ -239,15 +239,15 @@ ls -al ./l0n0lcoutput
239
239
  ## 5. jit_all_ops_@0ec883892076cd03.cpp
240
240
  ```c++
241
241
  #include "jit_all_ops_@0ec883892076cd03.h"
242
- extern "C" int16_t jit_all_ops (int16_t a, int16_t b)
242
+ extern "C" int64_t jit_all_ops (int64_t a, int64_t b)
243
243
  {
244
244
  auto x = 42;
245
- auto y = ((int16_t)(a + b));
245
+ auto y = ((int64_t)(a + b));
246
246
  auto z = 3.14;
247
247
  auto flag = true;
248
- int16_t nums[] = {1,2,3};
249
- int16_t tup[] = {4,5};
250
- std::unordered_map<int16_t, int16_t> mp = {{ 1, 10 },{ 2, 20 }};
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 }};
251
251
  auto pos = +a;
252
252
  auto neg = -b;
253
253
  auto inv = ~a;
@@ -341,12 +341,12 @@ extern "C" int16_t jit_all_ops (int16_t a, int16_t b)
341
341
  #include <string>
342
342
  #include <unordered_map>
343
343
  #include <vector>
344
- extern "C" int16_t jit_all_ops (int16_t a, int16_t b);
344
+ extern "C" int64_t jit_all_ops (int64_t a, int64_t b);
345
345
  ```
346
346
  ## 7. test_add_@122c4be59097d472.cpp
347
347
  ```c++
348
348
  #include "test_add_@122c4be59097d472.h"
349
- extern "C" int16_t test_add (int16_t a, int16_t b)
349
+ extern "C" int64_t test_add (int64_t a, int64_t b)
350
350
  {
351
351
  if ((a > 1))
352
352
  {
@@ -364,7 +364,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
364
364
  }
365
365
 
366
366
  a = std::ceil(12.5);;
367
- std::unordered_map<std::string, int16_t> cc = {{ u8"a", 1 },{ u8"b", 2 }};
367
+ std::unordered_map<std::string, int64_t> cc = {{ u8"a", 1 },{ u8"b", 2 }};
368
368
  cc[u8"c"] = 3;
369
369
  std::cout<< u8"输出map:" << " "<< std::endl;;
370
370
  for (auto ii : cc)
@@ -372,7 +372,7 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
372
372
  std::cout<< ii.first << " "<< ii.second << " "<< std::endl;;
373
373
  }
374
374
 
375
- int16_t aa[] = {1,3,2};
375
+ int64_t aa[] = {1,3,2};
376
376
  aa[0] = 134;
377
377
  std::cout<< u8"输出list:" << " "<< std::endl;;
378
378
  for (int64_t i = 0; i < 3; ++i)
@@ -419,12 +419,12 @@ extern "C" int16_t test_add (int16_t a, int16_t b)
419
419
  #include <iostream>
420
420
  #include <string>
421
421
  #include <unordered_map>
422
- extern "C" int16_t test_add (int16_t a, int16_t b);
422
+ extern "C" int64_t test_add (int64_t a, int64_t b);
423
423
  ```
424
424
  ## 9. test_other_fn_@75fdd928ab58a8e3.cpp
425
425
  ```c++
426
426
  #include "test_other_fn_@75fdd928ab58a8e3.h"
427
- extern "C" int16_t test_other_fn (int16_t a, int16_t b)
427
+ extern "C" int64_t test_other_fn (int64_t a, int64_t b)
428
428
  {
429
429
  return a - b;
430
430
  }
@@ -435,12 +435,12 @@ extern "C" int16_t test_other_fn (int16_t a, int16_t b)
435
435
  #pragma once
436
436
  #include <cstdint>
437
437
  #include <string>
438
- extern "C" int16_t test_other_fn (int16_t a, int16_t b);
438
+ extern "C" int64_t test_other_fn (int64_t a, int64_t b);
439
439
  ```
440
440
  ## 11. test编译的函数_@3bf4501e0408a243.cpp
441
441
  ```c++
442
442
  #include "test编译的函数_@3bf4501e0408a243.h"
443
- extern "C" int16_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int16_t a, int16_t b)
443
+ extern "C" int64_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int64_t a, int64_t b)
444
444
  {
445
445
  return a * b;
446
446
  }
@@ -451,5 +451,5 @@ extern "C" int16_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e5
451
451
  #pragma once
452
452
  #include <cstdint>
453
453
  #include <string>
454
- extern "C" int16_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int16_t a, int16_t b);
454
+ extern "C" int64_t /*test编译的函数*/ function_74657374e7bc96e8af91e79a84e587bde695b0 (int64_t a, int64_t b);
455
455
  ```
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "l0n0lc"
3
- version = "0.8.9"
3
+ version = "0.9.0"
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