aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-04-04Merge pull request #421 from dhylands/git-versionDamien George
Add the git version and build-date to the banner
2014-04-04unix: Routines related to terminal reading should use system malloc.Paul Sokolovsky
Otherwise we have mixup between system and GC alloc.
2014-04-04run-tests: Elaborate python3 command override capabilities.Paul Sokolovsky
2014-04-04py: Make False and True act like 0 and 1 for integer arithmetic.Damien George
2014-04-04py: Allow dict constructor to take keyword arguments.Damien George
2014-04-04py: Remove mp_obj_less (use mp_binary_op(MP_BINARY_OP_LESS..) instead).Damien George
2014-04-04unix: Allocate more heap memory by default on 64 bit machines.Damien George
Pointers are 2x bigger on 64 bit machines, so we should allocate twice the memory to have a comparable heap size.
2014-04-04Merge pull request #422 from dhylands/str-moduloDamien George
Str modulo
2014-04-04py: Enable optimisation of multiplying 2 small ints in compiler.Damien George
2014-04-04tests: Make rge-sm.py use less memory (integration step increased).Damien George
In addition to memory allocation failure, other problem was that 10**17 was overflowing. Now passes.
2014-04-04py: This time, real proper overflow checking of small int power.Damien George
Previous overflow test was inadequate.
2014-04-04py: Add m_malloc_fail function to handle memory allocation error.Damien George
A malloc/realloc fail now throws MemoryError.
2014-04-04tests/file-with: Add testcase which failed for @dpgeorge.Paul Sokolovsky
Works on x86.
2014-04-03Implements most of str.moduloDave Hylands
The alternate form for floating point doesn't work yet. The %(name)s form doesn't work yet.
2014-04-03Add the git version to the bannerDave Hylands
2014-04-04py: Handle small int power overflow correctly.Damien George
2014-04-03Changes to get unix/ port compiling on Cygwin.Damien George
2014-04-03stmhal: Add home/end cursor support in readline.Damien George
Home/end work in picocom and screen (different codes in those 2 programs). Also, CTRL-A (for non-empty liny) and CTRL-E act as home/end.
2014-04-03Merge pull request #419 from pfalcon/stmhal-file-streamsDamien George
stmhal: Reimplement file support using stream protocol API.
2014-04-03tests: Allow to run tests on pyboard.Damien George
To run the tests on the pyboard you need to set the "test_on_pyboard" variable to "True", and also have tools/pyboard.py available for import (easiest is to symlink to it).
2014-04-03tools: Improve reading back from pyboard.Damien George
2014-04-03stmhal: On soft reset, if in raw REPL mode, don't run main.py.Damien George
2014-04-03tools: pyboard.py can now execute a file remotely!Damien George
2014-04-03stmhal: Fix raw REPL so that it passes through more ASCII chars.Damien George
2014-04-03stmhal: Add powf, logf, log2f, log10f.Damien George
2014-04-03stmhal: #undef log2f if it's defined.Damien George
2014-04-03README: ARM Linux is supported.Paul Sokolovsky
Retested again on Ubuntu 12.04 armhf running in chroot on Samsung ARM Chromebook (Cortex-A15).
2014-04-03stmhal: Reimplement file support using stream protocol API.Paul Sokolovsky
This adds readline(), readall(), etc. methods. Also other fixes to make Python API compliant and "with" support.
2014-04-03run-tests: Allow to override python3 command to use via environment var.Paul Sokolovsky
2014-04-03unix file: Implement context manager protocol (for "with" statement).Paul Sokolovsky
2014-04-03py: Add "io" module.Paul Sokolovsky
So far just includes "open" function, which should be supplied by a port. TODO: Make the module #ifdef'ed.
2014-04-03py: More robust int conversion and overflow checking.Damien George
2014-04-02Merge pull request #417 from pfalcon/unix-enable-gcDamien George
unix: Enable GC.
2014-04-02Merge branch 'fix-format-int' of github.com:dhylands/micropython into ↵Damien George
dhylands-fix-format-int Conflicts: py/objstr.c
2014-04-02Fix str.format to work with {:f/g/e} and intsDave Hylands
Also fix objstr.c to compile when floats disabled.
2014-04-02py: Fix regress for printing of floats and #if.Damien George
Also change formating modifier in test script (it still passes with original format though).
2014-04-02Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-04-02stmhal: Fix servo object; add fpclassify to math functions.Damien George
2014-04-02unix: Enable GC.Paul Sokolovsky
GC support for "unix" port was implemented some time ago, but still not enabled.
2014-04-02tests/string-format: Add test for formatting ints with float format.Paul Sokolovsky
Fail currently.
2014-04-02gc: Uses uint defined in misc.h.Paul Sokolovsky
2014-04-02unix: Use argv[0] for command name in usage.Paul Sokolovsky
2014-04-02unix: Support #if-able impl-specific cmdline options.Paul Sokolovsky
For example, we still build w/o GC enabled, so cannot really set heap size.
2014-04-02unix: Properly recognize and report when script on cmdline not found.Paul Sokolovsky
Previosuly just silently exited.
2014-04-02py: Wrap compile_scope_inline_asm in #if; remove comment from misc.h.Damien George
2014-04-02py: Fix up so that it can compile without float.Damien George
2014-04-02py: Enable a jump optimisation in the compiler.Damien George
2014-04-02py: Move to Python 3.4.0 compatibility.Damien George
Very little has changed. In Python 3.4 they removed the opcode STORE_LOCALS, but in Micro Python we only ever used this for CPython compatibility, so it was a trivial thing to remove. It also allowed to clean up some dead code (eg the 0xdeadbeef in class construction), and now class builders use 1 less stack word. Python 3.4.0 introduced the LOAD_CLASSDEREF opcode, which I have not yet understood. Still, all tests (apart from bytecode test) still pass. Bytecode tests needs some more attention, but they are not that important anymore.
2014-04-02Change test scripts to use python3; bytecode tests use python3.4.Damien George
I upgraded to Python 3.4.0, so needed to make these changes. Hopefully the tests still run with Python 3.3.x (the scripts use python3 so are agnostic as to the subversion). Bytecode tests are tightly coupled to the Python version, and now some fail against Python 3.4.
2014-04-02Merge branch 'pip-micropy' of github.com:pfalcon/micropython into ↵Damien George
pfalcon-pip-micropy