- 30 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
__bool__() and __len__() are just the same as __neg__() or __invert__(), and require efficient dispatching implementation (not requiring search/lookup). type->unary_op() is just the right choice for this short of adding standalone virtual method(s) to already big mp_obj_type_t structure.
-
- 27 Jan, 2014 1 commit
-
-
Damien George authored
-
- 21 Jan, 2014 1 commit
-
-
Damien George authored
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
-
- 19 Jan, 2014 1 commit
-
-
Damien George authored
-
- 18 Jan, 2014 1 commit
-
-
Damien George authored
Change state layout in VM so the stack starts at state[0] and grows upwards. Locals are at the top end of the state and number downwards. This cleans up a lot of the interface connecting the VM to C: now all functions that take an array of Micro Python objects are in order (ie no longer in reverse). Also clean up C API with keyword arguments (call_n and call_n_kw replaced with single call method that takes keyword arguments). And now make_new takes keyword arguments. emitnative.c has not yet been changed to comply with the new order of stack layout.
-
- 15 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 11 Jan, 2014 2 commits
-
-
Damien George authored
Still need to make built-ins by these names, and write tests.
-
John R. Lenton authored
-
- 10 Jan, 2014 2 commits
-
-
John R. Lenton authored
-
John R. Lenton authored
-
- 09 Jan, 2014 1 commit
-
-
Damien George authored
Creating of classes (types) and instances is much more like CPython now. You can use "type('name', (), {...})" to create classes.
-
- 08 Jan, 2014 1 commit
-
-
Damien George authored
-
- 07 Jan, 2014 12 commits
-
-
John R. Lenton authored
-
John R. Lenton authored
-
John R. Lenton authored
-
John R. Lenton authored
-
John R. Lenton authored
-
John R. Lenton authored
-
John R. Lenton authored
-
John R. Lenton authored
-
John R. Lenton authored
Added 0 to the list of primes. Funky primes, these.
-
John R. Lenton authored
-
John R. Lenton authored
-
John R. Lenton authored
It's not really about that, though; it's about me figuring out a sane way forward for keyword-argument functions (and function metadata). But it's useful as is, and shouldn't break any existing code, so here you have it; I'm going to park it in my mind for a bit while sorting out the rest of the dict branch.
-
- 06 Jan, 2014 2 commits
- 05 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 04 Jan, 2014 2 commits
-
-
Damien George authored
Now much more inline with how CPython does types.
-
Damien George authored
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).
-
- 29 Dec, 2013 1 commit
-
-
Damien authored
-
- 21 Dec, 2013 1 commit
-
-
Damien authored
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).
-