251 Commits

Author SHA1 Message Date
pikastech
5ea62ce9e0 support platform_get_tick and thread_delay for stdtask 2023-04-16 10:57:54 +08:00
pikastech
e9f832c517 enhance int() for int('1234', 8) 2023-03-17 14:28:10 +08:00
lyon
ec8405d304 support str.join()
fix VM for nano mode
2023-03-11 22:36:12 +08:00
lyon
7889c4028c (vm) raise err when slice of get out of range 2023-03-11 13:14:54 +08:00
pikastech
ca65efd1fa fix args_foreach handler
add PikaGC class

add gc.onMarkObj

add GC DUMP

support gcdump()

improve gcdump
2023-03-09 16:52:57 +08:00
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
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
6258ccebb2 add clear() builtin, fix REPL thread 2023-02-26 17:48:19 +08:00
lyon
6c6be65db6 support add and build 2023-02-22 21:59:28 +08:00
lyon
85d989028e support bool type 2023-02-18 16:35:03 +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
lyon
eb519fb78e fix ac5 warnning 2023-01-29 12:11:43 +08:00
lyon
897a7eba0b fix str() for bytes 2023-01-26 15:58:58 +08:00
lyon
cba8f7ec44 use type(d) == <type> in json.py 2023-01-24 00:20:43 +08:00
lyon
410f0a0093 support type() for list and dict 2023-01-23 23:59:15 +08:00
lyon
065faab243 support str(type()) again 2023-01-23 23:53:40 +08:00
lyon
e50d75addb use arg_toString to get arg<str> 2023-01-23 23:53:40 +08:00
lyon
63cc3434ee ready to merge arg_singlePrint and _print_arg 2023-01-23 23:53:40 +08:00
lyon
68fac66530 fix fn and arg scope, support type() for basic arg 2023-01-23 23:53:40 +08:00
lyon
e2a9489a87 fix tim no found 2023-01-22 23:25:20 +08:00
lyon
d77e7f3f2d add filter for dir() 2023-01-22 23:16:38 +08:00
lyon
fd910ea086 support split_str 2023-01-21 19:29:35 +08:00
lyon
83ebe9d398 update PikaStdLib 2023-01-19 17:47:34 +08:00
lyon
75ce1ba5c8 fix LLD 2022-12-24 15:03:35 +08:00
lyon
3afd92608a fix typo of getArgByIndex 2022-12-21 00:13:19 +08:00
pikastech
7e397f6bb9 support Type Check for f.write 2022-12-02 15:03:52 +08:00
lyon
82b6f2ab39 add multi file when pre-compile test ok 2022-12-01 18:11:58 +08:00
lyon
546d5c526a load file from py.a, loss some bytes at head 2022-12-01 16:11:25 +08:00
lyon
9718b1a482 support help('modules') for py modules 2022-11-30 00:39:01 +08:00
lyon
c8ab4ce3cb adding format
fix star with pos
2022-11-29 20:05:13 +08:00
pikastech
61618834f0 support unpack *var 2022-11-29 16:50:49 +08:00
pikastech
bd9bd8b864 support f.read() 2022-11-25 17:32:10 +08:00
lyon
e89c585f46 update kernal, fix CI 2022-11-22 18:01:54 +08:00
lyon
b481c1c72b use pikaList, pikaDict, pikaTuple API 2022-11-19 19:11:34 +08:00
lyon
9d4fe8e98a optimize speed for print() when one input 2022-11-17 12:48:10 +08:00
lyon
1755b51cd9 optimize speed for print() 2022-11-17 12:30:37 +08:00
pikastech
6d61bc07cc support print None
optimizing runbytecode

use _cache_bcf

arrange the run_bytecode and cache

more args for _do_pikaVM_runBytecode

support print(None)
2022-11-14 16:11:21 +08:00
lyon
db95b14950 support float('1.1') 2022-11-08 22:07:23 +08:00
lyon
8c17a7bd0d adding LEFT_RIGHT KEY support, not ok 2022-11-08 12:39:19 +08:00
lyon
c5f2d55a1d fix arg_getBytesSize in FILEIO.write 2022-11-04 13:34:34 +08:00
pikastech
98863c79c3 fix core dump when print kw arg 2022-11-03 18:51:53 +08:00
lyon
5180f2d807 fix cfg.getchar name conflict 2022-10-25 14:32:43 +08:00
lyon
d0df040067 support unittest for REPL, check overflow for REPL 2022-10-25 11:52:42 +08:00
lyon
df65e2def9 support RES on pikaCompiler 2022-10-24 10:14:12 +08:00
lyon
ed060f0c24 use u32 size value inner *.py.o 2022-10-23 18:57:00 +08:00
pikastech
5fa138c9c1 fix input 2022-10-21 17:14:06 +08:00