788 Commits

Author SHA1 Message Date
lyon
01be7b7ad7 try to add runbytecodereturn
switch to runbytecodereturn

gc test pass except pikaui

skip pikaui test, local root not work
2023-03-09 11:23:33 +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
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
c01775b39a add comment for modbus.py, from AI 2023-03-02 00:35:14 +08:00
lyon
f152db319c support fullfealure of type() 2023-03-01 22:03:51 +08:00
lyon
cc6fd6605b ready to intruce mark-sweep GC 2023-03-01 21:23:33 +08:00
lyon
ae2ec0a7cd fix 'self' for get method from getattr 2023-03-01 19:28:16 +08:00
pikastech
cb30579c08 update thread, fix parse err on 'not in or' 2023-03-01 15:46:22 +08:00
pikastech
fc5e21140b fix ci, fix wars 2023-02-27 19:47:46 +08:00
pikastech
6258ccebb2 add clear() builtin, fix REPL thread 2023-02-26 17:48:19 +08:00
pikastech
6d4b7a3eb7 enhance event ant thread
enhance _thread start
2023-02-26 17:04:58 +08:00
dreamcmi
2ac39e522d fix socket fcntl has wrong number of parameters in lwip 2023-02-26 02:00:10 +08:00
lyon
21993122a3 fix weakref
add comment
2023-02-23 21:45:20 +08:00
lyon
2077880671 fix modbus err 2023-02-23 15:52:44 +08:00
lyon
6c6be65db6 support add and build 2023-02-22 21:59:28 +08:00
pikastech
0b5be3c57c update cJson 2023-02-20 16:23:46 +08:00
lyon
85d989028e support bool type 2023-02-18 16:35:03 +08:00
lyon
6eb79f9b81 update unittest 2023-02-15 11:31:36 +08:00
lyon
165cc7d041 fix thread and socket on freertos
use pikaMalloc/Free inner platform_thread()

socket multithread test passed on linux

update

improve fast_test.sh
2023-02-14 19:37:30 +08:00
lyon
4fb1fd3ed4 fix _thread on freertos|esp32c3
fix Nano mode
2023-02-13 22:24:30 +08:00
lyon
6898f52a71 add GIL for socket 2023-02-13 19:54:16 +08:00
dreamcmi
76d2980dc4 remove socket debug printf 2023-02-12 21:44:18 +08:00
dreamcmi
cad688a7ee socket recv length fix to actual length 2023-02-12 21:42:30 +08:00
dreamcmi
8a21ba98d1 add socket.setblocking method 2023-02-12 20:44:40 +08:00
lyon
531dced423 use pikafs_fxxx API 2023-02-12 11:12:28 +08:00
pikastech
b09cae79d3 raise when list out of index, fix 'for except brea' 2023-02-11 14:44:11 +08:00
pikastech
6f659ca93d rename vm_lock to GIL 2023-02-11 13:44:53 +08:00
lyon
994bb3bdc5 add weakref
add PikaUI test

test PikauI_core passed

save host_obj on methodArg

support save host_obj for method
2023-02-11 00:58:58 +08:00
lyon
cd0029b6d1 fix modbus panic when decode faild 2023-02-10 11:07:25 +08:00
lyon
523aea3d73 add PIKAUI 2023-02-09 23:17:40 +08:00
lyon
abbe038eb3 restore n_num 2023-02-09 17:40:44 +08:00
lyon
612a8aa33d try to fix chain err 2023-02-09 17:16:40 +08:00
lyon
91f9d74082 fix read too many bytes from uart.readBytes() 2023-02-03 17:11:47 +08:00
lyon
15c1c01942 fix CI 2023-02-02 12:12:09 +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
20bfc6a681 more thread support 2023-02-01 13:31:30 +08:00
lyon
0752afac79 add _thread module 2023-02-01 13:15:15 +08:00
lyon
98bab11333 support yield 2023-02-01 00:41:19 +08:00
lyon
d9925cab7c support yiled from time.sleep() 2023-02-01 00:37:05 +08:00
lyon
d7fedffdc5 renmae platform_timer to thread_timer 2023-01-31 23:38:55 +08:00
lyon
eb519fb78e fix ac5 warnning 2023-01-29 12:11:43 +08:00
lyon
4c553fdb3e use new WIFI hal framework 2023-01-27 22:47:48 +08:00
lyon
897a7eba0b fix str() for bytes 2023-01-26 15:58:58 +08:00
lyon
9b82685e4d check faild on network
fix pos to kw when no enough pos

ifconfig test ok
2023-01-25 14:13:09 +08:00
lyon
262bc09f1e test wifi sacn on linux 2023-01-25 00:25:18 +08:00
lyon
ecd12f75a1 network from hal OK 2023-01-24 23:40:41 +08:00
lyon
835574e687 add wifi.state enum 2023-01-24 21:10:06 +08:00
lyon
012022dea4 add network module, add WIFI hal 2023-01-24 21:00:02 +08:00
lyon
cba8f7ec44 use type(d) == <type> in json.py 2023-01-24 00:20:43 +08:00