pikastech
ad3b22f0f3
fix builtins namespace conflic with module
2023-05-22 09:53:50 +08:00
lyon
8f74b8ea53
add builtins.pyi for PikaStdLib
2023-05-21 22:36:47 +08:00
lyon
b49cb51de3
support isinstance()
builtin
2023-05-21 21:05:17 +08:00
lyon
c823ad0879
support isinstance() for simple type
2023-05-21 01:19:13 +08:00
lyon
03e6b89980
support lua table to list/dict
2023-05-14 22:50:24 +08:00
lyon
d403603296
fix pika_lua close()
2023-05-14 13:04:33 +08:00
lyon
bb21c7b7fe
support method_proxy for pika_lua
2023-05-14 12:57:24 +08:00
lyon
c1ac93019e
restore kernal
2023-05-14 11:17:07 +08:00
lyon
6f7cf36574
support get return value for pika_lua.eval
2023-05-14 10:39:43 +08:00
pikastech
bf129bb398
fix parse err for 'test'.split()[0]
...
add test
2023-05-05 21:47:52 +08:00
pikastech
4e9816f9a1
support max(), min() builtin
2023-05-02 23:54:11 +08:00
pikastech
f6d8001f37
support string.find()
2023-04-27 19:44:51 +08:00
pikastech
09dfed3f20
support single_item tuple like (1,) or ('test',)
...
fix format
2023-04-24 22:30:37 +08:00
pikastech
11080aa513
add circlequeue.py
2023-04-23 20:55:20 +08:00
pikastech
3d7a087598
add abs() builtin
2023-04-22 18:46:45 +08:00
pikastech
c487912fc5
cancel GIL yiled between bc to avoid data race
2023-04-22 13:46:59 +08:00
lyon
6d3d8b3658
support delay for eventloop
2023-04-21 01:06:02 +08:00
pikastech
70aabb81ad
fix thread and eventloop for onec args
2023-04-20 19:26:04 +08:00
pikastech
9b140e90a3
add eventloop module, support get_tick for _time
2023-04-20 17:06:16 +08:00
pikastech
a468012f2f
fix __setattr__ mem leak when @value is not reg
2023-04-19 22:24:10 +08:00
pikastech
270f476dec
support parity, databits and stopbits for std uart
2023-04-17 21:38:43 +08:00
pikastech
ed7f63cf1d
support defualt value and set timezone for time
2023-04-17 21:36:42 +08:00
pikastech
3fef8ec3f9
_thread support setup the stack_size
2023-04-17 09:42:28 +08:00
pikastech
0285c19abd
support check if thread create succeed
2023-04-16 18:34:11 +08:00
pikastech
df7d291dbc
fix event thread GIL error
2023-04-16 13:36:07 +08:00
pikastech
42c85835d0
add thread_delay for run_until
2023-04-16 10:59:15 +08:00
pikastech
5ea62ce9e0
support platform_get_tick and thread_delay for stdtask
2023-04-16 10:57:54 +08:00
pikastech
ea4d42bbea
fix thread mem error when args is void
2023-04-15 11:20:11 +08:00
pikastech
c89f873fab
optimize for pure string on printf
...
support unlimited pika_printf impl
2023-04-14 19:42:26 +08:00
pikastech
fe3dff9b3d
support obj_newTuple/List helper function
2023-03-30 16:28:42 +08:00
pikastech
d2ae781a18
fix typo
2023-03-30 11:33:13 +08:00
pikastech
1faaacafb7
add STD_in/out ctrl on soft_iic
2023-03-30 11:21:12 +08:00
pikastech
5fdf6701e0
add SOFT_IIC.c
...
add hal_SOFT_IIC
2023-03-30 11:13:58 +08:00
pikastech
06150d0133
fix os_split
2023-03-26 21:30:18 +08:00
pikastech
34dedcde2d
add os_path support
2023-03-26 20:43:51 +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
pikastech
e9f832c517
enhance int() for int('1234', 8)
2023-03-17 14:28:10 +08:00
pikastech
b9a0109c61
(fix) fix os on ESP32
2023-03-15 03:20:25 +00:00
pikastech
a3b402ae36
add os module
...
fix color for GC DUMP
add os module and test
support ESP32
2023-03-15 03:20:25 +00: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
1005ca64ef
fromat sysobj
2023-03-10 21:39:14 +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
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
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