- 20 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
These are micropython.mem_total(), .mem_current(), .mem_peak(). These are 3 individual functions with simple scalar return value to make sure that calls to these functions themselves have minimal (hopefully zero) impact on memory allocation.
-
- 19 Jan, 2014 3 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Damien George authored
Exceptions know source file, line and block name. Also tidy up some debug printing functions and provide a global flag to enable/disable them.
-
- 18 Jan, 2014 6 commits
-
-
Damien George authored
-
Damien George authored
Now searches both locals_dict and methods. Partly addresses Issue #145.
-
Paul Sokolovsky authored
So far, only storage, initialization, repr() and buffer protocol is implemented - alredy suitable for passing binary data around.
-
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.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 16 Jan, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Implicit "micropython" module contains (at least) codegeneration decorators. Make it explicit, so an app could have "import micropython". On MicroPython, that will be no-op. On CPython, that will give a chance to have a module with placeholder decorators.
-
- 15 Jan, 2014 5 commits
-
-
Damien George authored
-
Damien George authored
-
John R. Lenton authored
-
John R. Lenton authored
-
Paul Sokolovsky authored
-
- 14 Jan, 2014 2 commits
-
-
John R. Lenton authored
-
Paul Sokolovsky authored
So far, don't work for strings as expected.
-
- 13 Jan, 2014 4 commits
-
-
Damien George authored
-
Damien George authored
-
John R. Lenton authored
-
John R. Lenton authored
-
- 12 Jan, 2014 2 commits
-
-
Paul Sokolovsky authored
We likely should make mp_obj_new_int() inline, and rely on its encapsulated check rather than inline checks everywhere explicitly. Also, parser for big small int values is still broken.
-
Paul Sokolovsky authored
Currently it would report "operation not supported" which is confusing. Overall, this is thinko leading to undefined behavior.
-
- 11 Jan, 2014 5 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
Still need to make built-ins by these names, and write tests.
-
John R. Lenton authored
-
Damien George authored
-
John R. Lenton authored
-
- 10 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 09 Jan, 2014 2 commits
-
-
Damien George authored
-
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 4 commits
-
-
Damien George authored
-
Damien George authored
Addresses issue #104.
-
Damien George authored
-
Damien George authored
-
- 07 Jan, 2014 3 commits
-
-
John R. Lenton authored
-
John R. Lenton authored
-
Damien George authored
-