1333 Commits

Author SHA1 Message Date
blueloveTH
0251f924c3 fix leak and improve pickle 2025-10-08 21:09:14 +08:00
lightovernight
b44a5afc97
upgrade isattach to status (#398)
* fix an fatal error

* fix bug : rerefrence invaild

* implement better exception support

* fix bug : might crash when eval executes

* upgrade istattach to status

* some fix

* Update ceval.c

---------

Co-authored-by: blueloveTH <blueloveth@foxmail.com>
2025-10-07 21:51:46 +08:00
blueloveTH
62491dd99a reimpl str.format 2025-09-17 14:10:26 +08:00
blueloveTH
d3d61dde0c refactor code 2025-09-08 15:41:44 +08:00
blueloveTH
c658b5a7a4 backup 2025-08-31 00:09:55 +08:00
blueloveTH
33be8e869a some refactor 2025-08-30 21:44:33 +08:00
blueloveTH
1d16d1a6f7 disable finally cuz it is buggy 2025-08-30 21:34:37 +08:00
blueloveTH
5f265e5ec8 Revert "test new sweep algo"
This reverts commit 410a3c5dd42d577b9c31713ed0af673f29decfc2.
2025-08-29 23:43:21 +08:00
blueloveTH
410a3c5dd4 test new sweep algo 2025-08-29 23:35:39 +08:00
blueloveTH
5868db1d53 make dict with string keys noexcept 2025-08-28 19:03:46 +08:00
blueloveTH
b6c030ac15 fix OS macro for debugger 2025-08-26 23:44:47 +08:00
lightovernight
e40c4af55c
Gsoc 2025 debugger (#390)
* implement `evaluate` request

* Update main.c

* Update main.c

* change port to 6110

* Update main.c

* simplify the workdir process and minor optimizations

* implement exit event

* fix bp not hit because of path format

* implement output event

* add `ctype.h` to `core.c`

* implement exception breakpoint

* fix assert triggered when called isspace

---------

Co-authored-by: blueloveTH <blueloveth@foxmail.com>
2025-08-26 23:25:34 +08:00
blueloveTH
5dba2cd8e6 remove is_virtual 2025-08-22 16:51:05 +08:00
blueloveTH
24c6c01ac9 do not profile lambda func 2025-08-18 14:30:13 +08:00
blueloveTH
b786fda39d add exception breakpoint 2025-08-18 11:40:13 +08:00
blueloveTH
166b437498 fix line_profiler 2025-08-15 16:02:27 +08:00
lightovernight
d0980c6934
Gsoc 2025 debugger (#385)
* add debugger module

* simplify the workdir process

* Update main.c

* Update main.c

* update debugger

* change port to 6110

* Update main.c

* simplify the workdir process and minor optimizations

* implement exit event

* Fix memory management in setBreakpoints

---------

Co-authored-by: blueloveTH <blueloveth@foxmail.com>
2025-08-09 14:43:16 +08:00
lightovernight
ec8f8f473e
Merge pull request #379 from lightovernight/gsoc-2025-debugger
Gsoc 2025 debugger
2025-08-09 13:04:04 +08:00
blueloveTH
03ee6563c8 add profiler 2025-08-08 14:26:27 +08:00
blueloveTH
169e825197 add profiler 2025-08-08 11:28:50 +08:00
blueloveTH
84d7292b5d add color32.__hash__ 2025-08-06 14:33:22 +08:00
blueloveTH
391e83d659 add cute_png module from cute_headers 2025-08-06 14:25:53 +08:00
blueloveTH
b7abcf19b1 remove trailing newline 2025-08-05 13:40:01 +08:00
blueloveTH
ff3cbca554 add random methods 2025-07-29 19:39:02 +08:00
blueloveTH
ca086f9732 fix https://github.com/pocketpy/pocketpy/issues/363 2025-07-22 15:01:06 +08:00
blueloveTH
bc64efe57a ... 2025-07-17 19:23:31 +08:00
blueloveTH
f1d4ef5e1c Update pocketpy.h 2025-07-17 17:37:37 +08:00
blueloveTH
01f04b2e41 add py_tpsetfinal 2025-07-17 11:24:39 +08:00
blueloveTH
5799af3fd7 allow hook getunboundmethod 2025-07-17 11:17:24 +08:00
blueloveTH
7016a8780c use 24 bytes data
Update pocketpy.h

Update pocketpy.h
2025-07-13 23:55:45 +08:00
blueloveTH
9c2b96e572 add function wrapper for malloc/free 2025-07-12 21:42:18 +08:00
blueloveTH
418f50c29a make PK_ENABLE_OS control socket 2025-07-05 16:20:15 +08:00
blueloveTH
d5a511ad7c fix https://github.com/pocketpy/pocketpy/issues/378 2025-07-03 18:04:36 +08:00
blueloveTH
b6cefdeedc add py_tphookattributes 2025-07-02 01:01:52 +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
7d484f8fa3 fix config.h 2025-07-01 15:13:46 +08:00
blueloveTH
7ea00a3954 change default settings 2025-06-30 22:32:58 +08:00
blueloveTH
d5415391fc fix alignment of slab 2025-06-30 22:21:57 +08:00
blueloveTH
2fc8e40734 remove malloc for unused 2025-06-30 14:04:15 +08:00
blueloveTH
a1e35b6e13 add PK_ENABLE_THREADS 2025-06-30 11:30:36 +08:00
blueloveTH
f9f74b7b12 add inline optimize 2025-06-30 00:09:15 +08:00
blueloveTH
9b8f706010 add shortcut for __next__
Update py_dict.c
2025-06-29 23:16:31 +08:00
blueloveTH
caf7505dc2 improve dict 2025-06-29 21:44:57 +08:00
blueloveTH
be2aae493a backup 2025-06-27 14:21:53 +08:00
blueloveTH
fd6f0d76b2 fix https://github.com/pocketpy/pocketpy/issues/376 2025-06-27 11:18:32 +08:00
blueloveTH
e0efcae53a use golang's vector realloc 2025-06-26 17:01:58 +08:00
blueloveTH
13e82c1913 add py_newtrivial
backup

add `py_totrivial`
2025-06-26 00:17:09 +08:00
blueloveTH
e187a61624 fix module reload bug 2025-06-22 16:31:46 +08:00
blueloveTH
68a2186728 improve module 2025-06-22 13:37:20 +08:00
blueloveTH
0b09246a6d add RELOAD_MODE 2025-06-22 13:01:50 +08:00