1483 Commits

Author SHA1 Message Date
blueloveTH
4db4274882 some optimize 2024-03-17 16:34:57 +08:00
blueloveTH
44c61a8c3a add PREDICT_INT_DIV_OP 2024-03-17 16:33:08 +08:00
blueloveTH
11544b3f7a Update ceval.cpp 2024-03-16 19:30:53 +08:00
blueloveTH
017655c057 add PREDICT_INT_OP 2024-03-16 19:20:29 +08:00
BLUELOVETH
65440c2034
Fix #197 (#227)
* init

* some optimize

* Update frame.h

* remove `LOAD_INTEGER`

* Update vm.cpp

* some optimize

* some fix

* Revert "remove `LOAD_INTEGER`"

This reverts commit c0b965aee2f64fbfae0b20f41d714688649d20cf.

* some fix

* Update expr.cpp

* some fix

* Update retype.yml
2024-03-16 18:37:09 +08:00
blueloveTH
9bfe8c1bad some fix 2024-03-16 15:55:53 +08:00
blueloveTH
63e869df0c Revert "some optimize"
This reverts commit 31dc34663a0a2ffe45552eec7ceaca58759d228d.
2024-03-16 15:54:56 +08:00
blueloveTH
31dc34663a some optimize 2024-03-16 15:42:04 +08:00
blueloveTH
1456fb5e20 remove _s in Frame 2024-03-16 15:32:17 +08:00
blueloveTH
638ce2699a Revert "some fix about emplace"
This reverts commit 3d5b50a527b5992b53708676aee4738effba7707.
2024-03-16 15:20:41 +08:00
blueloveTH
3d5b50a527 some fix about emplace 2024-03-16 15:16:11 +08:00
blueloveTH
fffcd7425d some optimize 2024-03-16 14:54:55 +08:00
blueloveTH
37453a8502 some fix 2024-03-16 14:40:01 +08:00
Anurag Bhat
2ab819a724
Modify string constructor to allow no arguments (#226)
* Modify String Constructor

* Add check to restrict arguments
2024-03-13 00:55:54 +08:00
blueloveTH
1caa9e71c3 fix https://github.com/pocketpy/pocketpy/issues/213 2024-03-04 17:27:13 +08:00
blueloveTH
6cf2f950cd some fix 2024-03-04 17:11:56 +08:00
blueloveTH
7f7e1a14ee raise error on literal ints overflow 2024-03-04 16:48:47 +08:00
blueloveTH
206685a3f6 inline ~PyObject 2024-03-03 01:32:34 +08:00
blueloveTH
3edd4aca67 some refactor 2024-03-03 01:30:09 +08:00
blueloveTH
0fd2c695bf some fix 2024-03-02 16:44:14 +08:00
blueloveTH
e82cad5b25 some fix 2024-03-02 04:22:53 +08:00
blueloveTH
5e01164dac move some methods to header file 2024-03-02 04:06:29 +08:00
blueloveTH
d5c93c666e remove PyVec* 2024-03-01 18:18:41 +08:00
Anurag Bhat
5100f4e454
Floating inputs for round() should return a Floating output when ndigit is 0 (#217)
* Fix round for floating inputs

* Refactor integer inputs

* some fix

---------

Co-authored-by: blueloveTH <blueloveth@foxmail.com>
2024-02-27 11:18:21 +08:00
blueloveTH
214395fab6 fix https://github.com/pocketpy/pocketpy/issues/214 2024-02-26 10:40:37 +08:00
blueloveTH
90a9a404e2 some refactor 2024-02-25 13:06:41 +08:00
blueloveTH
51a3c93f69 some refactor 2024-02-25 12:39:09 +08:00
blueloveTH
4af7d5c873 fix https://github.com/pocketpy/pocketpy/issues/212 2024-02-23 15:48:24 +08:00
blueloveTH
0599130c0d fix https://github.com/pocketpy/pocketpy/issues/211 2024-02-23 01:27:48 +08:00
Anurag Bhat
842c415a9f
Fix Typos in the Codebase (#210)
* Fix Typos

* Revert some changes

* Revert ldtk file
2024-02-21 15:40:48 +08:00
blueloveTH
38dceac61b add PK_SLICE_LOOP 2024-02-20 02:13:33 +08:00
blueloveTH
3534492bb6 improve array2d.__setitem__ 2024-02-20 01:56:10 +08:00
blueloveTH
cbe8945d37 some update 2024-02-19 11:42:18 +08:00
blueloveTH
4509076b78 remove redundant code 2024-02-19 00:08:36 +08:00
blueloveTH
95720b965f rollback 2024-02-19 00:00:34 +08:00
blueloveTH
415c1f6b38 some more replace 2024-02-18 22:43:09 +08:00
blueloveTH
19a2b8950b replace std::vector<Expr_> with small_vector 2024-02-18 21:31:27 +08:00
blueloveTH
5983dd2ae6 add unique_ptr_64 2024-02-18 20:49:26 +08:00
blueloveTH
4ac915e25c some fix 2024-02-18 18:59:58 +08:00
blueloveTH
bbe3773154 fix a bug 2024-02-18 18:08:11 +08:00
blueloveTH
97c923e514 use pod_vector for small vectors 2024-02-18 17:51:35 +08:00
blueloveTH
635aae921f fix compile warnings 2024-02-18 16:05:14 +08:00
blueloveTH
6ed8a262a8 some fix 2024-02-18 10:58:48 +08:00
blueloveTH
7d38f83008 fix a bug 2024-02-18 00:57:56 +08:00
blueloveTH
1558e5b40f fix a bug 2024-02-18 00:44:57 +08:00
blueloveTH
c7abc23ef4 fix a bug 2024-02-17 23:12:07 +08:00
blueloveTH
15f29fb085 fix a bug 2024-02-17 23:06:29 +08:00
blueloveTH
c3b050c77a fix a bug of line_profiler 2024-02-17 22:32:30 +08:00
blueloveTH
0df619b66f str.index and str.find supports __start 2024-02-17 20:45:08 +08:00
blueloveTH
96d9e12cd6 list.index supports __start 2024-02-17 20:36:20 +08:00