21 Commits

Author SHA1 Message Date
pikastech
62d1d40618 remove parse_line test
move block inner parser

formatting line2Ast
2023-03-18 18:05:10 +08:00
pikastech
f39ad4077b format parser
clear the parse-test

fix time sleep on linux from `uint32_t` to `int64_t`

using parser object on pikaparer
2023-03-18 16:49:37 +08:00
lyon
ec8405d304 support str.join()
fix VM for nano mode
2023-03-11 22:36:12 +08:00
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
ae2ec0a7cd fix 'self' for get method from getattr 2023-03-01 19:28:16 +08:00
lyon
24dd3c8e5c add prime compile 2023-02-12 19:58:48 +08:00
lyon
73e056141b fix mem leak when exit thread
support tuple args for _thread.start_new_thread()

update _thread
2023-02-01 21:35:49 +08:00
lyon
ed04dc2657 support send any Arg to event 2022-12-27 22:45:34 +08:00
lyon
16f3e8f4eb support --add-file for precompiler 2022-12-01 13:07:24 +08:00
pikastech
a09d32d6ac format load_call_arg
use f struct

support stack check arg
2022-11-29 16:06:18 +08:00
lyon
363238987e support fn and class def on bytecode
update version, fix warning
2022-11-15 14:57:51 +08:00
lyon
85ece20f4c support cq for evnet, get res from event 2022-11-05 12:34:18 +08:00
pikastech
766c9bf7c9 add test_purec.h to support run unittest on purec 2022-10-28 18:39:50 +08:00
lyon
df65e2def9 support RES on pikaCompiler 2022-10-24 10:14:12 +08:00
pikastech
7c6267bfd9 support multi module import parse 2022-10-20 12:55:07 +08:00
pikastech
72aa1f8f95 fix test 2022-10-09 00:24:33 +08:00
pikastech
1748e306d6 optimize speed for OPT 2022-10-05 21:09:13 +08:00
pikastech
e0aae36a1a reduce malloc 2022-10-05 20:36:00 +08:00
pikastech
efd9abbf17 add mem check
add big_dict_update test
2022-09-27 21:30:30 +08:00
pikastech
75d6f97823 move test to top 2022-09-26 21:47:52 +08:00