30 Commits

Author SHA1 Message Date
pikastech
7f5edaf090 add objCnt
ready to check where enable the mark_sweep

auto gc with threshold failed, add some assert

more assert about obj alive, dict mark not correct

add pikaGC_try, but cannot run at any time

markSweep crashed on keyword

save gcRoot for obj to debug

add debug point

add kernal_debug config to keep more debug info

use @res_<opt> to mark operation

found self reference on __iter__()

can not fix gc err around iter

remove lock, only keep the self lock

more obj info for debug

only pikaui not pass

only pikaui not pass
2023-03-08 09:35:27 +08:00
lyon
9d4aa3c38c try to fix gc about __pikaMain
fix format

can not markSweep after deinit root

support markRoot if not root

add clang-format

fix path

enable compile-commonds on to support clangd

set markSweep not default

use no_gc object for function frame

only gc for tinyobj, not pikaobj

restore add gc chain when init pikaObj

add clang-format in docker

set for default formatter to clang-format

all Object is GC_ROOT on create

only enable mark sweep to collect after OUT

markSweep after deinit __pikaMain

more mark sweep collect
2023-03-06 10:57:08 +08:00
lyon
38388625ca support mark-sweep gc
change project name and url on kernal sources

rename global Value

format name

use g_PikaObjState

add gc chain

add gc_mark()

add printCanFree

add sub locals init

try use mark-sweep to solve circle-ref

use mark sweep to collect circle ref succeed

import mark-sweep GC

config_default

update
2023-03-05 12:57:27 +08:00
lyon
546daaabe0 logout syntex err line
fix parse err on complex list
2023-02-25 16:43:41 +08:00
lyon
0d71c8eed3 fix run native constructor 2023-02-25 12:15:38 +08:00
lyon
85d989028e support bool type 2023-02-18 16:35:03 +08:00
pikastech
9af5c1ea7f add test for sh_filter 2023-02-13 16:17:10 +08:00
pikastech
1a690ef5f4 fix CI 2023-02-13 16:08:28 +08:00
pikastech
e0bdc1b34b add sence test for shell_filter 2023-02-13 16:00:23 +08:00
pikastech
1265906952 format shell_filter
set sh_filter as default, add test caces
2023-02-13 15:57:31 +08:00
pikastech
b09cae79d3 raise when list out of index, fix 'for except brea' 2023-02-11 14:44:11 +08:00
lyon
24862b7215 more test for obj_set_str(NULL) 2022-11-24 01:36:31 +08:00
lyon
b4a79e00dd add obj/args_setNone() api 2022-11-24 01:14:27 +08:00
lyon
5bb24375ae add python layer for requests to connnect url 2022-11-22 13:44:00 +08:00
lyon
d8b71908f0 enhance syntax check for def 2022-11-16 13:26:32 +08:00
lyon
a0c00498f8 support KEY_LEFT and KEY_RIGHT 2022-11-08 23:36:50 +08:00
pikastech
766c9bf7c9 add test_purec.h to support run unittest on purec 2022-10-28 18:39:50 +08:00
lyon
79361f493b fix 0x7F,'p','y','o' check err when backspace + p 2022-10-27 12:53:23 +08:00
lyon
1bf5663ecb use new backspace algream 2022-10-25 16:38:16 +08:00
lyon
b7c5537813 add backspacke test for REPL 2022-10-25 15:55:45 +08:00
lyon
df65e2def9 support RES on pikaCompiler 2022-10-24 10:14:12 +08:00
lyon
0705e4d9f6 add fatfs
add pika_posixfs
2022-10-22 20:03:25 +08:00
lyon
a344117bc3 fix __cleanbuff err in _do_obj_runChar 2022-10-22 11:25:13 +08:00
pikastech
8436c6623b fix '\r\n' for obj_runchar 2022-10-22 10:13:13 +08:00
pikastech
5fa138c9c1 fix input 2022-10-21 17:14:06 +08:00
pikastech
6bb5adde37 support run obj_runChar inner pikaScriptShell 2022-10-20 22:51:51 +08:00
pikastech
2e46e3c6ba fix compile err on msvc 2022-10-13 10:44:37 +08:00
pikastech
45c3edcfa1 add test for UnitTest.py
add volatile for precompiler

update prec
2022-10-08 19:23:32 +08:00
pikastech
5523710682 optimize speed 2022-10-06 14:40:09 +08:00
pikastech
75d6f97823 move test to top 2022-09-26 21:47:52 +08:00