aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-02-16py: Add iter_buf to getiter type method.Damien George
Allows to iterate over the following without allocating on the heap: - tuple - list - string, bytes - bytearray, array - dict (not dict.keys, dict.values, dict.items) - set, frozenset Allows to call the following without heap memory: - all, any, min, max, sum TODO: still need to allocate stack memory in bytecode for iter_buf.
2017-02-16py/vm: Convert mp_uint_t to size_t where appropriate.Damien George
2017-02-16py/objint: Convert mp_uint_t to size_t where appropriate.Damien George
2017-02-16py/objexcept: Convert mp_uint_t to size_t where appropriate.Damien George
2017-02-16py/objclosure: Convert mp_uint_t to size_t where appropriate.Damien George
2017-02-16py/objfun: Convert mp_uint_t to size_t where appropriate.Damien George
2017-02-16py/objarray: Convert mp_uint_t to size_t where appropriate.Damien George
2017-02-16py/objstr: Convert mp_uint_t to size_t (and use int) where appropriate.Damien George
2017-02-16py/objset: Convert mp_uint_t to size_t where appropriate.Damien George
2017-02-16py/objdict: Convert mp_uint_t to size_t where appropriate.Damien George
2017-02-16py/objlist: Convert mp_uint_t to size_t where appropriate.Damien George
2017-02-16py/objtuple: Convert mp_uint_t to size_t where appropriate.Damien George
2017-02-16py/persistentcode: Replace mp_uint_t with size_t where appropriate.Damien George
2017-02-16py/mpz: Change type of "base" args from mp_uint_t to unsigned int.Damien George
2017-02-16py/mpz: Remove obsolete declaration of mpz_as_str_size.Damien George
2017-02-16py/mpz: Convert mp_uint_t to size_t where appropriate.Damien George
2017-02-16py/runtime: Convert mp_uint_t to size_t where appropriate.Damien George
2017-02-15extmod/modlwip: Add my copyright.Paul Sokolovsky
Per: $ git log modlwip.c |grep ^Auth | sort | uniq -c 9 Author: Damien George 2 Author: Galen Hazelwood 43 Author: Paul Sokolovsky
2017-02-15tests/basic/: Make various tests skippable.Paul Sokolovsky
To run the testsuite on small ports.
2017-02-15tests/gen_yield_from_close: Use range() instead of reversed().Paul Sokolovsky
As a "more basic" builtin iterator, present even in smaller ports.
2017-02-15examples/embedding/README: Convert to markdown, grammar and clarity fixes.Paul Sokolovsky
2017-02-15stmhal: Use generic interrupt char code.Damien George
2017-02-15stmhal: Implement a proper thread scheduler.Damien George
This patch changes the threading implementation from simple round-robin with busy waits on mutexs, to proper scheduling whereby threads that are waiting on a mutex are only scheduled when the mutex becomes available.
2017-02-15py/vm: Add MICROPY_PY_THREAD_GIL_VM_DIVISOR option.Damien George
This improves efficiency of GIL release within the VM, by only doing the release after a fixed number of jump-opcodes have executed in the current thread.
2017-02-15py/modthread: Use system-provided mutexs for _thread locks.Damien George
It's more efficient using the system mutexs instead of synthetic ones with a busy-wait loop. The system can do proper scheduling and blocking of the threads waiting on the mutex.
2017-02-15tests/thread: Add stress-test for creating many threads.Damien George
2017-02-15tests/thread: Replace busy waiting loops with a loop that sleeps.Damien George
Depending on the thread scheduler, a busy-wait loop can hog the CPU and make the tests very slow. So convert such loops to loops that have an explicit sleep, allowing the worker threads to do their job.
2017-02-15tests/extmod: Make tests skippable.Paul Sokolovsky
2017-02-15tests/dict_fromkeys: Revert to use reversed() to run in native codegen mode.Paul Sokolovsky
2017-02-15tests/basic/[a-f]*: Make skippable.Paul Sokolovsky
For small ports which don't have all features enabled.
2017-02-14zephyr/main: Don't unconditionally dump stats on each GC.Paul Sokolovsky
This was a debug output for initial porting, breaks tests.
2017-02-14tests/builtin_dir: The most expected thing in sys is exit, test for it.Paul Sokolovsky
2017-02-14tests/comprehension1, containment: Split set tests to separate files.Paul Sokolovsky
To make skippable.
2017-02-14tests/run-tests: Allow to skip tests using async/await keywords.Paul Sokolovsky
2017-02-14tests: Add option to not clear MICROPYPATH when running testsstijn
This allows using the test runner for other scenarios than just testing uPy itself. The principle of comparing either to CPython or else to a .exp file is really handy but to be able to test custom modules not built into micropython.exe one needs to be able to specify the module search path a.k.a MICROPYPATH.
2017-02-14zephyr: Add qemu_cortex_m3 config fragment.Paul Sokolovsky
Should work for QEMU networking with soon-to-merged upstream patch.
2017-02-14zephyr: Enable IPv6 networking in addition to IPv4.Paul Sokolovsky
2017-02-14docs/uos: Remove mention of uos.sep.Paul Sokolovsky
MicroPython guarantees '/' to be a path separator, so extra constant taking precious ROM space are not needed. MicroPython never had such constant, only one vendor port had it (now unmaintained).
2017-02-14examples/hwapi/soft_pwm: Use Signal on()/off() methods.Paul Sokolovsky
Just one sample is updated with on()/off() for now, there should be remaining sample(s) showing .value() use (but more can be converted later, as long as 1 or so good samples of .value() remains).
2017-02-14py/objtype: Replace non-ASCII single-quote char with ASCII version.Damien George
2017-02-13docs/library/machine: Make separate TOC for WiPy vs non-WiPy.Damien George
WiPy is the only port with ADC and SD, so they shouldn't be included in other ports' documentation.
2017-02-13extmod/vfs: Allow to stat the root directory.Damien George
os.stat('/') now works and returns a mostly-empty tuple. Really all that is useful is the mode which tells that it's a directory.
2017-02-13docs/library/pyb.Pin: Minor typo fix, B6 should be A0.Dave Hylands
On the PYBv1.0, X1 maps to A0, not B6.
2017-02-13esp8266/moduos: Populate release field of uname in case it was GC'd.Damien George
2017-02-13stmhal/boards: For STM32F411DISC, change I2C pin according to datasheet.Johannes Wågen
The pin had to be changed to get the I2C sensors on board to work.
2017-02-13unix/moduselect: Implement ipoll() method with no-allocation policy.Paul Sokolovsky
ipoll() allows to poll streams without allocating any memory: this method returns an iterator (a poll object itself), and the iterator yields preallocated "callee-owned tuple" with polling results for each active stream. The only operation a caller is allowed to do with this tuple is extracting values from it (storing the tuple as a whole somewhere is not allowed).
2017-02-10tools/upip: Update to 1.1.5. Better and more user-friendly error handling.Paul Sokolovsky
2017-02-10tests/misc: Add test for line number printing with large bytecode chunk.Damien George
2017-02-10py/emitbc: Produce correct line number info for large bytecode chunks.Damien George
Previous to this patch, for large chunks of bytecode that originated from a single source-code line, the bytecode-line mapping would generate something like (for 42 bytecode bytes and 1 line): BC_SKIP=31 LINE_SKIP=1 BC_SKIP=11 LINE_SKIP=0 This would mean that any errors in the last 11 bytecode bytes would be reported on the following line. This patch fixes it to generate instead: BC_SKIP=31 LINE_SKIP=0 BC_SKIP=11 LINE_SKIP=1
2017-02-09extmod/vfs: Raise OSError(EEXIST) on attempt to mkdir a mount point.Damien George