1951 Commits

Author SHA1 Message Date
blueloveTH
a98e710fe7 delete old deque 2023-10-21 08:06:00 +08:00
S Mahmudul Hasan
c82bfb5455
Implement deque in C++ as required by #139 (#155)
* Initial integration of deque in collections

* some fix

* WIP: Implemented a int-only deque with limited capabilities

* WIP: added some more functionality -> changed int to arbitrary objects

* WIP: Added more functionalities in deque

* WIP: switched to std::deque

* WIP: added more functionalities

* WIP: minor fix

* WIP: added constructor

* WIP: added deque iterator

* WIP: added more functionalities

* Cleaned up and added more functionalities

* minor fix, std::min

* minor fix, rotate, n=0 case

* fix `collections` module

* support pickle

* refactored collections module

* Added some tests, more to follow

* Fixed the tests, more to follow

* Fixed some functionalities and added more tests

* added more tests, called __init__ from pickle, added reverse iterator option

* added the tests

* dropped support for __init__ for now

* moved deque iterator to collections.cpp

* undo unnecessary changes

* Cleaned up and added __str__() support

---------

Co-authored-by: blueloveTH <blueloveTH@foxmail.com>
2023-10-21 07:47:11 +08:00
blueloveTH
27be56fceb ... 2023-10-19 01:29:04 +08:00
blueloveTH
901f702f00 rename emit into emit_ to make QT happy v1.2.7 2023-10-16 13:56:07 +08:00
blueloveTH
f3acafe44c rename METHOD() macro 2023-10-16 10:57:06 +08:00
blueloveTH
541ad57d97 ... 2023-10-16 00:15:45 +08:00
blueloveTH
e8b1449979 ... 2023-10-16 00:08:26 +08:00
blueloveTH
5f6c7f3f23 Create cjson.pyi 2023-10-15 23:57:13 +08:00
blueloveTH
f66c031fa9 Update 80_json.py 2023-10-15 22:39:10 +08:00
blueloveTH
020bd7bd26 ... 2023-10-15 22:34:43 +08:00
blueloveTH
57e1ec1637 ... 2023-10-15 22:25:04 +08:00
blueloveTH
ab53927019 ... 2023-10-15 22:14:34 +08:00
blueloveTH
f41368afbb ... 2023-10-15 22:08:41 +08:00
blueloveTH
5e3572b32c replace std::stringstream with SStream 2023-10-15 21:58:33 +08:00
blueloveTH
e4b6d566a7 add SStream 2023-10-15 21:36:30 +08:00
blueloveTH
3f7435263a Update amalgamate.py 2023-10-15 16:57:56 +08:00
blueloveTH
cdcdded9a3 some fix 2023-10-15 16:47:53 +08:00
blueloveTH
acdab59d94 Update cJSONw.cpp 2023-10-15 16:06:49 +08:00
blueloveTH
7922513255 Update cJSONw.cpp 2023-10-15 16:03:44 +08:00
blueloveTH
852123d6d3 docs update 2023-10-15 15:46:38 +08:00
blueloveTH
b9ad9f18c2 docs update 2023-10-15 15:43:00 +08:00
blueloveTH
4c13c5480d ... 2023-10-15 15:30:53 +08:00
blueloveTH
ac5bc5ea0e Update cJSONw.cpp 2023-10-15 15:26:56 +08:00
blueloveTH
b3e77cdb51 ... 2023-10-15 15:20:22 +08:00
blueloveTH
3c6e4b4e76 ... 2023-10-15 15:15:44 +08:00
blueloveTH
227e76e3e4 cjson cleanup 2023-10-15 15:00:25 +08:00
Mahbub Alam
2950d88545
Add cjson module (#151)
* Add cjson module

* Create structure for cjson module

* Implemenet loads function

* Convert cJsonBool to python boolean

* Implement dumps function

* Convert json bool and null to python Bool and None

* necessary changes of project structure

* Update amalgamate.py

* Support non-dictionary json objects (list, tuple, string, number, bool, null)

* Fix tests

* fix CI

* fix CI

* Convert python to cJson and then to string

* Delete cJSON object after use

---------

Co-authored-by: Mahbub Alam <alam.mahbub214@gmail.com>
Co-authored-by: blueloveTH <blueloveth@foxmail.com>
2023-10-15 13:32:20 +08:00
blueloveTH
53e4043e0e fix a bug of _class in Function 2023-10-15 04:44:10 +08:00
blueloveTH
c3f10ae4d1 fix a bug of type.__class__ 2023-10-15 04:31:16 +08:00
blueloveTH
01fecaa352 fix a bug 2023-10-15 03:33:03 +08:00
blueloveTH
7f68155b04 docs update 2023-10-14 17:59:18 +08:00
blueloveTH
9481d653b6 docs update 2023-10-14 17:52:14 +08:00
blueloveTH
f81ebccb62 docs update 2023-10-14 17:03:33 +08:00
blueloveTH
0aef0c8a01 docs update 2023-10-14 16:58:32 +08:00
blueloveTH
3d332a694f Create primes.lua 2023-10-14 16:34:14 +08:00
blueloveTH
7cb0959922 fix a unittest error 2023-10-14 15:29:30 +08:00
blueloveTH
37f47b8cee ... 2023-10-14 15:26:50 +08:00
blueloveTH
0157025097 disable code serialization impl 2023-10-14 15:25:07 +08:00
blueloveTH
02798c5b00 ... 2023-10-14 15:22:16 +08:00
blueloveTH
eb1f8f0a4f some more optimize 2023-10-14 15:18:45 +08:00
blueloveTH
1afef9dcb9 reduce bytecode size 2023-10-14 14:30:15 +08:00
blueloveTH
ffde186dfa change opcode to uint8_t 2023-10-14 12:43:10 +08:00
BLUELOVETH
1879a47597
Update ceval.cpp 2023-10-14 02:07:58 +08:00
blueloveTH
9cd1ed164b some doc fix 2023-10-14 01:38:54 +08:00
blueloveTH
ea94e3c531 some doc fix 2023-10-14 01:35:29 +08:00
blueloveTH
66d9870150 ... 2023-10-14 01:33:22 +08:00
blueloveTH
eec1bb3c99 Update performance.md v1.2.6 2023-10-14 01:29:16 +08:00
blueloveTH
d9aef85f0d Update performance.md 2023-10-14 01:26:16 +08:00
blueloveTH
6c821f35ea ... 2023-10-14 01:07:49 +08:00
blueloveTH
31cbb8b652 add bool prediction 2023-10-14 01:04:49 +08:00