aboutsummaryrefslogtreecommitdiff
path: root/py/runtime.c
AgeCommit message (Collapse)Author
2014-01-04Convert Python types to proper Python type hierarchy.Damien George
Now much more inline with how CPython does types.
2014-01-04Add ellipsis object.Damien George
2014-01-04Split qstr into pools, and put initial pool in ROM.Damien George
Qstr's are now split into a linked-list of qstr pools. This has 2 benefits: the first pool can be in ROM (huge benefit, since we no longer use RAM for the core qstrs), and subsequent pools use m_new for the next pool instead of m_renew (thus avoiding a huge single table for all the qstrs). Still would be better to use a hash table, but this scheme takes us part of the way (eventually convert the pools to hash tables). Also fixed bug with import. Also improved the way the module code is referenced (not magic number 1 anymore).
2014-01-03Add note about implementing inplace operators.Damien George
2014-01-03Basic implementation of import.Damien George
import works for simple cases. Still work to do on finding the right script, and setting globals/locals correctly when running an imported function.
2014-01-02Add module object, to be used eventually for import.Damien George
2014-01-02py: Add framework for built-in "type()" function.Damien George
2014-01-01py: add int() and float() built-ins, partially implemented.Damien George
2013-12-30py: make closures work.Damien George
2013-12-30Put unicode functions in unicode.c, and tidy their names.Damien George
2013-12-29py: add dict length function, and fix rt_store_set.Damien
2013-12-29py: implement some basic exception matching.Damien
2013-12-21py: simplify __next__ method for generators.Damien
2013-12-21Change object representation from 1 big union to individual structs.Damien
A big change. Micro Python objects are allocated as individual structs with the first element being a pointer to the type information (which is itself an object). This scheme follows CPython. Much more flexible, not necessarily slower, uses same heap memory, and can allocate objects statically. Also change name prefix, from py_ to mp_ (mp for Micro Python).
2013-12-17py: add more Python built-in functions.Damien
2013-12-17py: split runtime into map, obj, builtin.Damien
2013-12-11py: work towards working closures.Damien
2013-12-10py: add skeletal import functionality.Damien
2013-11-28py: built-in range now accepts variable number of arguments.Damien
2013-11-26py: add list pop and sort, unpack_sequence, and keywords in method_call.Damien
2013-11-25py: add call to __init__ when instantiating class object.Damien
2013-11-17Add function to decode and show byte code.Damien
2013-11-17Change some debugging/output messages for native code generation.Damien
2013-11-09Add len and subscr (a hack) support for strings.Damien
2013-11-06Built-in print function supports variable number of arguments.Damien
2013-11-05Improve allocation of stack for byte code.Damien
2013-11-05Make byte code jumps relative.Damien
2013-11-03Fixup include of stdarg and va_list definition.Damien
2013-11-03Add simple var-arg functions; add simple string.format.Damien
2013-11-03Change Py API names, py_get_* -> py_obj_get_*.Damien
2013-11-02Add user object to runtime.Damien
2013-11-02Fix bug: emit native didn't clear last_was_return in label_assign.Damien
2013-11-02Add basic complex number support.Damien
2013-11-02Small hack to temporarily fix allocation of unique_code slots.Damien
2013-11-02Py runtime: list.append returns None.Damien
2013-11-02Implement: str.join, more float support, ROT_TWO in VM.Damien
2013-10-25Add py_get_array_fixed_n function.Damien
2013-10-23Add working MMA support.Damien
2013-10-23Fix func decls with no arguments: () -> (void).Damien
2013-10-23Add py_get_qstr.Damien
2013-10-22Add simple support for C modules.Damien
2013-10-22Implement some more operators, mostly for small ints.Damien
2013-10-22Shrink py_obj_base_t size to 4 machine words.Damien
2013-10-19Make grammar rules const so the go in .text section.Damien
2013-10-19Make rt_fun_table const, so it goes in .text section.Damien
2013-10-18Implement REPL.Damien
2013-10-16Add iterators and comprehension to emitnative.Damien
2013-10-16Add SET_ADD opcode to VM.Damien
2013-10-16Implement BC & runtime support for generator/yielding.Damien
2013-10-16Support tuples and list comprehension, albeit crude.Damien