49 Commits

Author SHA1 Message Date
blueloveTH
03ee6563c8 add profiler 2025-08-08 14:26:27 +08:00
blueloveTH
152d6bbd49 test mimalloc
Update cmake_build.py

Update CMakeLists.txt

Update CMakeLists.txt
2025-07-01 15:54:39 +08:00
blueloveTH
f2be5cf0f4 ... 2025-02-06 14:23:35 +08:00
blueloveTH
3d12c9400c add libhv module 2025-01-18 22:12:44 +08:00
blueloveTH
7964cc1af6 support dll load 2024-09-09 13:20:11 +08:00
blueloveTH
cd5e2f8138 add gen_docs.py 2024-08-17 19:05:56 +08:00
blueloveTH
bc991249b9 ... 2024-08-14 18:28:31 +08:00
031f189a4a
Make SourceData and SStream c11 (#266)
* Make SourceData c11

* make it compile

* add a marco

* follow up rename of c11_vetor__push

* remove isascii marco

* fix empty function name handling

* change enum back

* Remove trival accessor

* make pkpy_Str__take_buf hidden

* make it compile

* remove rcptr and use shared_ptr instead

* change enum name in C++ code back

* fix type problem

* remove strdup polyfill

* remove xmake

* ...
2024-06-11 20:28:51 +08:00
ykiko
5d73dfc55d
add [[noreturn]] for *Error functions to disable warning. (#247)
* add noreturn for *Error to disable warning.

* fix.
2024-05-29 21:23:39 +08:00
blueloveTH
63db196bf9 add references 2024-05-05 12:05:41 +08:00
blueloveTH
92705058b2 remove python3 deps 2024-02-17 13:59:32 +08:00
blueloveTH
74ffb3f6ed some cleanup 2024-01-20 22:52:30 +08:00
blueloveTH
f83dac9252 ... 2024-01-16 02:33:22 +08:00
blueloveTH
c6ec028730 support real exceptions 2024-01-02 16:42:08 +08:00
blueloveTH
641b9a9e27 some cleanup 2023-12-26 21:35:51 +08:00
blueloveTH
e00ddb8692 some refactor
Update vm.cpp
2023-11-28 23:41:50 +08:00
Chukobyte
075b9c776c Added the ability to override the import handler in c. 2023-11-28 08:48:50 -05: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
e9b4734004 ... 2023-09-18 21:53:45 +08:00
star9029
2c03d053d8 Add xmake 2023-07-23 14:24:23 +08:00
BLUELOVETH
fc70cd4b08 ... 2023-07-18 18:17:33 +08:00
blueloveTH
b34ef3aa1c ... 2023-07-16 02:38:33 +08:00
blueloveTH
85a9588459 ... 2023-07-09 16:10:15 +08:00
blueloveTH
e0f1ccd772 ... 2023-07-09 02:17:30 +08:00
BLUELOVETH
d4696d6931 bug workaround on MacOS
Number::stoi may raise std::out_of_range but it cannot be caught via catch(std::exception&). We use catch(...) for now. Note that catch(...) may catch pkpy::Exception or any others.
2023-07-03 15:02:58 +08:00
blueloveTH
656d1d7291 ... 2023-07-02 03:52:44 +08:00
blueloveTH
f3ac21ccc2 ... 2023-07-02 01:39:24 +08:00
blueloveTH
9182ba5fc5 ... 2023-06-04 18:56:58 +08:00
BLUELOVETH
f2d87467df add some test 2023-05-28 14:23:16 +08:00
blueloveTH
a96a0740ad ... 2023-05-24 21:40:13 +08:00
blueloveTH
58315b22ef Update .gitignore 2023-05-20 13:43:16 +08:00
blueloveTH
a04cdb4cad add requests module 2023-04-30 21:53:50 +08:00
blueloveTH
6a27bc8bda up 2023-04-07 18:15:26 +08:00
blueloveTH
7a07eefed0 up
Update main.yml

Update main.yml

up

Update main.yml

update

Update main.yml

up

Update 04_str.py

Update run_tests.sh
2023-03-17 03:51:46 +08:00
blueloveTH
765fb83007 add os module 2023-03-16 16:42:42 +08:00
blueloveTH
2475fcda77 refactor 2023-03-09 22:33:27 +08:00
blueloveTH
3b13b1a988 up
Update build.py

up

up
2023-03-05 02:05:39 +08:00
blueloveTH
ac4b0a2740 set clang as default 2023-03-04 19:34:47 +08:00
blueloveTH
8433d40f2c up 2023-02-19 22:05:19 +08:00
blueloveTH
2811684e05 Update .gitignore 2023-02-09 12:11:26 +08:00
blueloveTH
a399a36c78 Update .gitignore 2023-02-09 12:10:09 +08:00
blueloveTH-Mac
593bf4befb up
Update amalgamate.py

Update .gitignore

up
2023-02-05 19:53:18 +08:00
blueloveTH
4ccb124eec Update .gitignore 2022-12-30 19:48:29 +08:00
blueloveTH
b4e95b1bab up 2022-12-12 04:16:57 +08:00
blueloveTH
8a99b0779b up 2022-12-09 20:42:18 +08:00
blueloveTH
5fe61c2e11 up
add unity package

update gitignore

up

Update CHANGELOG.md
2022-12-05 22:25:50 +08:00
blueloveTH
ca4039a52f add global kw 2022-11-11 00:47:01 +08:00
blueloveTH
0891000a46 init 2022-11-06 12:16:57 +08:00